summaryrefslogtreecommitdiff
path: root/auth2.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2004-05-24 10:36:23 +1000
committerDarren Tucker <dtucker@zip.com.au>2004-05-24 10:36:23 +1000
commit89413dbafa5a5f237ba1040b74e6437b8b1ff1e0 (patch)
tree0436722462ae48880fa96b00d31f45caa6bf4ea5 /auth2.c
parente534e1212703c04906d3ab00ba768f3a45bd2370 (diff)
- dtucker@cvs.openbsd.org 2004/05/23 23:59:53
[auth.c auth.h auth1.c auth2.c servconf.c servconf.h sshd_config sshd_config.5] Add MaxAuthTries sshd config option; ok markus@
Diffstat (limited to 'auth2.c')
-rw-r--r--auth2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/auth2.c b/auth2.c
index 1177efa73..e4a3cded9 100644
--- a/auth2.c
+++ b/auth2.c
@@ -23,7 +23,7 @@
23 */ 23 */
24 24
25#include "includes.h" 25#include "includes.h"
26RCSID("$OpenBSD: auth2.c,v 1.104 2003/11/04 08:54:09 djm Exp $"); 26RCSID("$OpenBSD: auth2.c,v 1.105 2004/05/23 23:59:53 dtucker Exp $");
27 27
28#include "ssh2.h" 28#include "ssh2.h"
29#include "xmalloc.h" 29#include "xmalloc.h"
@@ -243,7 +243,7 @@ userauth_finish(Authctxt *authctxt, int authenticated, char *method)
243 /* now we can break out */ 243 /* now we can break out */
244 authctxt->success = 1; 244 authctxt->success = 1;
245 } else { 245 } else {
246 if (authctxt->failures++ > AUTH_FAIL_MAX) 246 if (authctxt->failures++ > options.max_authtries)
247 packet_disconnect(AUTH_FAIL_MSG, authctxt->user); 247 packet_disconnect(AUTH_FAIL_MSG, authctxt->user);
248 methods = authmethods_get(); 248 methods = authmethods_get();
249 packet_start(SSH2_MSG_USERAUTH_FAILURE); 249 packet_start(SSH2_MSG_USERAUTH_FAILURE);