summaryrefslogtreecommitdiff
path: root/auth2.c
diff options
context:
space:
mode:
authordtucker <dtucker>2004-05-24 00:36:23 +0000
committerdtucker <dtucker>2004-05-24 00:36:23 +0000
commitf9db48468401df522047a2dc875c678b2d5d6957 (patch)
tree4c47d5d32fcfb4a8c67939244cf1e44416e86a08 /auth2.c
parente7cc4f83009e0ed618642fffd142d4483d7cf24b (diff)
downloadopenssh-f9db48468401df522047a2dc875c678b2d5d6957.tar.gz
- 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 1177efa7..e4a3cded 100644
--- a/auth2.c
+++ b/auth2.c
@@ -23,7 +23,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: auth2.c,v 1.104 2003/11/04 08:54:09 djm Exp $");
+RCSID("$OpenBSD: auth2.c,v 1.105 2004/05/23 23:59:53 dtucker Exp $");
#include "ssh2.h"
#include "xmalloc.h"
@@ -243,7 +243,7 @@ userauth_finish(Authctxt *authctxt, int authenticated, char *method)
/* now we can break out */
authctxt->success = 1;
} else {
- if (authctxt->failures++ > AUTH_FAIL_MAX)
+ if (authctxt->failures++ > options.max_authtries)
packet_disconnect(AUTH_FAIL_MSG, authctxt->user);
methods = authmethods_get();
packet_start(SSH2_MSG_USERAUTH_FAILURE);