Skip to content

Commit 2da0942

Browse files
committed
Operator Precedence Bug
Added parens around an assignment to a variable before it is compared to an expected value. Affected function: SetupUserTokenWin. Issue: F-210
1 parent a2e6556 commit 2da0942

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/wolfsshd/auth.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -915,7 +915,7 @@ static int SetupUserTokenWin(const char* usr,
915915
authName.Buffer = MSV1_0_PACKAGE_NAME;
916916
authName.Length = (USHORT)WSTRLEN(MSV1_0_PACKAGE_NAME);
917917
authName.MaximumLength = authName.Length + 1;
918-
if (rc = LsaLookupAuthenticationPackage(lsaHandle, &authName, &authId) != STATUS_SUCCESS) {
918+
if ((rc = LsaLookupAuthenticationPackage(lsaHandle, &authName, &authId)) != STATUS_SUCCESS) {
919919
wolfSSH_Log(WS_LOG_ERROR, "[SSHD] LSA Lookup Authentication Package Error %d", rc);
920920
ret = WSSHD_AUTH_FAILURE;
921921
}

0 commit comments

Comments
 (0)