mirror of https://github.com/wolfSSL/wolfssh.git
option for no SendUserAuthFailure on USERAUTH_REGENCTED
parent
55c0352a76
commit
6c979231c7
|
@ -3266,9 +3266,13 @@ static int DoUserAuthRequestPassword(WOLFSSH* ssh, WS_UserAuthData* authData,
|
|||
}
|
||||
else if (ret == WOLFSSH_USERAUTH_REJECTED) {
|
||||
WLOG(WS_LOG_DEBUG, "DUARPW: password rejected");
|
||||
#ifndef NO_FAILUER_ON_REHECED
|
||||
ret = SendUserAuthFailure(ssh, 0);
|
||||
if (ret == WS_SUCCESS)
|
||||
ret = WS_USER_AUTH_E;
|
||||
#else
|
||||
ret = WS_USER_AUTH_E;
|
||||
#endif
|
||||
}
|
||||
else {
|
||||
WLOG(WS_LOG_DEBUG, "DUARPW: password check failed, retry");
|
||||
|
|
Loading…
Reference in New Issue