summaryrefslogtreecommitdiff
path: root/auth2.c
diff options
context:
space:
mode:
Diffstat (limited to 'auth2.c')
-rw-r--r--auth2.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/auth2.c b/auth2.c
index 70f29250d..fa1a5886d 100644
--- a/auth2.c
+++ b/auth2.c
@@ -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"
@@ -370,7 +371,7 @@ userauth_finish(Authctxt *authctxt, int authenticated, const char *method,
370#ifdef SSH_AUDIT_EVENTS 371#ifdef SSH_AUDIT_EVENTS
371 PRIVSEP(audit_event(SSH_LOGIN_EXCEED_MAXTRIES)); 372 PRIVSEP(audit_event(SSH_LOGIN_EXCEED_MAXTRIES));
372#endif 373#endif
373 packet_disconnect(AUTH_FAIL_MSG, authctxt->user); 374 auth_maxtries_exceeded(authctxt);
374 } 375 }
375 methods = authmethods_get(authctxt); 376 methods = authmethods_get(authctxt);
376 debug3("%s: failure partial=%d next methods=\"%s\"", __func__, 377 debug3("%s: failure partial=%d next methods=\"%s\"", __func__,