Fix state in DoUserAuthRequestPublicKey

pull/683/head
Eric Blankenhorn 2024-04-30 11:41:57 -05:00
parent 9b29ba68cc
commit 7692effba5
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");
authFailure = 1;
}
else {
ssh->clientState = CLIENT_USERAUTH_DONE;
}
}
else {
if (!authFailure && !partialSuccess) {
ssh->clientState = CLIENT_USERAUTH_DONE;
}
}