Merge pull request #683 from embhorn/zd17917

Fix state in DoUserAuthRequestPublicKey
pull/690/head
John Safranek 2024-05-02 14:05:13 -07:00 committed by GitHub
commit 8839376d34
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 4 deletions

View File

@ -6783,11 +6783,8 @@ static int DoUserAuthRequestPublicKey(WOLFSSH* ssh, WS_UserAuthData* authData,
WLOG(WS_LOG_DEBUG, "DUARPK: user overriding success"); WLOG(WS_LOG_DEBUG, "DUARPK: user overriding success");
authFailure = 1; authFailure = 1;
} }
else {
ssh->clientState = CLIENT_USERAUTH_DONE;
} }
} if (!authFailure && !partialSuccess) {
else {
ssh->clientState = CLIENT_USERAUTH_DONE; ssh->clientState = CLIENT_USERAUTH_DONE;
} }
} }