Skip to content

Commit

Permalink
Merge pull request #683 from embhorn/zd17917
Browse files Browse the repository at this point in the history
Fix state in DoUserAuthRequestPublicKey
  • Loading branch information
ejohnstown authored May 2, 2024
2 parents 39bbaff + 7692eff commit 8839376
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/internal.c
Original file line number Diff line number Diff line change
Expand Up @@ -6783,11 +6783,8 @@ static int DoUserAuthRequestPublicKey(WOLFSSH* ssh, WS_UserAuthData* authData,
WLOG(WS_LOG_DEBUG, "DUARPK: user overriding success");
authFailure = 1;
}
else {
ssh->clientState = CLIENT_USERAUTH_DONE;
}
}
else {
if (!authFailure && !partialSuccess) {
ssh->clientState = CLIENT_USERAUTH_DONE;
}
}
Expand Down

0 comments on commit 8839376

Please sign in to comment.