summaryrefslogtreecommitdiff
path: root/auth1.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 /auth1.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 'auth1.c')
-rw-r--r--auth1.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/auth1.c b/auth1.c
index 376007a05..471f27172 100644
--- a/auth1.c
+++ b/auth1.c
@@ -10,7 +10,7 @@
10 */ 10 */
11 11
12#include "includes.h" 12#include "includes.h"
13RCSID("$OpenBSD: auth1.c,v 1.56 2004/05/09 01:19:27 djm Exp $"); 13RCSID("$OpenBSD: auth1.c,v 1.57 2004/05/23 23:59:53 dtucker Exp $");
14 14
15#include "xmalloc.h" 15#include "xmalloc.h"
16#include "rsa.h" 16#include "rsa.h"
@@ -261,7 +261,7 @@ do_authloop(Authctxt *authctxt)
261 if (authenticated) 261 if (authenticated)
262 return; 262 return;
263 263
264 if (authctxt->failures++ > AUTH_FAIL_MAX) 264 if (authctxt->failures++ > options.max_authtries)
265 packet_disconnect(AUTH_FAIL_MSG, authctxt->user); 265 packet_disconnect(AUTH_FAIL_MSG, authctxt->user);
266 266
267 packet_start(SSH_SMSG_FAILURE); 267 packet_start(SSH_SMSG_FAILURE);