mirror of https://github.com/wolfSSL/wolfssh.git
Operator Precedence Bug
Added parens around an assignment to a variable before it is compared to an expected value. Affected function: SetupUserTokenWin. Issue: F-210pull/883/head
parent
a2e6556a1a
commit
2da09427cd
|
|
@ -915,7 +915,7 @@ static int SetupUserTokenWin(const char* usr,
|
|||
authName.Buffer = MSV1_0_PACKAGE_NAME;
|
||||
authName.Length = (USHORT)WSTRLEN(MSV1_0_PACKAGE_NAME);
|
||||
authName.MaximumLength = authName.Length + 1;
|
||||
if (rc = LsaLookupAuthenticationPackage(lsaHandle, &authName, &authId) != STATUS_SUCCESS) {
|
||||
if ((rc = LsaLookupAuthenticationPackage(lsaHandle, &authName, &authId)) != STATUS_SUCCESS) {
|
||||
wolfSSH_Log(WS_LOG_ERROR, "[SSHD] LSA Lookup Authentication Package Error %d", rc);
|
||||
ret = WSSHD_AUTH_FAILURE;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue