Skip to content

Commit

Permalink
In DoUserAuthRequestPassword() do not set ssh->clientState to CLIENT_…
Browse files Browse the repository at this point in the history
…USERAUTH_DONE if ret is not WS_SUCCESS.
  • Loading branch information
falemagn committed Nov 17, 2023
1 parent b187561 commit ea4bf73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/internal.c
Original file line number Diff line number Diff line change
Expand Up @@ -5108,7 +5108,7 @@ static int DoUserAuthRequestPassword(WOLFSSH* ssh, WS_UserAuthData* authData,
if (authFailure || partialSuccess) {
ret = SendUserAuthFailure(ssh, partialSuccess);
}
else {
else if (ret == WS_SUCCESS) {
ssh->clientState = CLIENT_USERAUTH_DONE;
}

Expand Down

0 comments on commit ea4bf73

Please sign in to comment.