Skip to content

Commit 7692eff

Browse files
committed
Fix state in DoUserAuthRequestPublicKey
1 parent 9b29ba6 commit 7692eff

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

src/internal.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6783,11 +6783,8 @@ static int DoUserAuthRequestPublicKey(WOLFSSH* ssh, WS_UserAuthData* authData,
67836783
WLOG(WS_LOG_DEBUG, "DUARPK: user overriding success");
67846784
authFailure = 1;
67856785
}
6786-
else {
6787-
ssh->clientState = CLIENT_USERAUTH_DONE;
6788-
}
67896786
}
6790-
else {
6787+
if (!authFailure && !partialSuccess) {
67916788
ssh->clientState = CLIENT_USERAUTH_DONE;
67926789
}
67936790
}

0 commit comments

Comments
 (0)