diff options
Diffstat (limited to 'auth2.c')
-rw-r--r-- | auth2.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: auth2.c,v 1.130 2014/01/29 06:18:35 djm Exp $ */ | 1 | /* $OpenBSD: auth2.c,v 1.132 2014/07/15 15:54:14 millert Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2000 Markus Friedl. All rights reserved. | 3 | * Copyright (c) 2000 Markus Friedl. All rights reserved. |
4 | * | 4 | * |
@@ -41,6 +41,7 @@ | |||
41 | #include "packet.h" | 41 | #include "packet.h" |
42 | #include "log.h" | 42 | #include "log.h" |
43 | #include "buffer.h" | 43 | #include "buffer.h" |
44 | #include "misc.h" | ||
44 | #include "servconf.h" | 45 | #include "servconf.h" |
45 | #include "compat.h" | 46 | #include "compat.h" |
46 | #include "key.h" | 47 | #include "key.h" |
@@ -362,7 +363,7 @@ userauth_finish(Authctxt *authctxt, int authenticated, const char *method, | |||
362 | #ifdef SSH_AUDIT_EVENTS | 363 | #ifdef SSH_AUDIT_EVENTS |
363 | PRIVSEP(audit_event(SSH_LOGIN_EXCEED_MAXTRIES)); | 364 | PRIVSEP(audit_event(SSH_LOGIN_EXCEED_MAXTRIES)); |
364 | #endif | 365 | #endif |
365 | packet_disconnect(AUTH_FAIL_MSG, authctxt->user); | 366 | auth_maxtries_exceeded(authctxt); |
366 | } | 367 | } |
367 | methods = authmethods_get(authctxt); | 368 | methods = authmethods_get(authctxt); |
368 | debug3("%s: failure partial=%d next methods=\"%s\"", __func__, | 369 | debug3("%s: failure partial=%d next methods=\"%s\"", __func__, |