summaryrefslogtreecommitdiff
path: root/auth.c
diff options
context:
space:
mode:
Diffstat (limited to 'auth.c')
-rw-r--r--auth.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/auth.c b/auth.c
index dfc1be374..b6c00c12b 100644
--- a/auth.c
+++ b/auth.c
@@ -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