diff --git a/src/internal.c b/src/internal.c index d6385ed..68b150a 100644 --- a/src/internal.c +++ b/src/internal.c @@ -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");