diff options
Diffstat (limited to 'auth.c')
-rw-r--r-- | auth.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -244,7 +244,10 @@ auth_log(Authctxt *authctxt, int authenticated, char *method, char *info) | |||
244 | info); | 244 | info); |
245 | 245 | ||
246 | #ifdef CUSTOM_FAILED_LOGIN | 246 | #ifdef CUSTOM_FAILED_LOGIN |
247 | if (authenticated == 0 && strcmp(method, "password") == 0) | 247 | if (authenticated == 0 && !authctxt->postponed && |
248 | (strcmp(method, "password") == 0 || | ||
249 | strncmp(method, "keyboard-interactive", 20) == 0) || | ||
250 | strcmp(method, "challenge-response") == 0) | ||
248 | record_failed_login(authctxt->user, | 251 | record_failed_login(authctxt->user, |
249 | get_canonical_hostname(options.use_dns), "ssh"); | 252 | get_canonical_hostname(options.use_dns), "ssh"); |
250 | #endif | 253 | #endif |