diff options
author | 2004-05-23 23:59:53 +0000 | |
---|---|---|
committer | 2004-05-23 23:59:53 +0000 | |
commit | 7b76b7ccd2b587f6675491605c6e45bd03fc775d (patch) | |
tree | 9e4e8baea14503ae6a7a15a0d2160119241b923d /usr.bin/ssh/auth1.c | |
parent | some readability fixes, mainly keeping things in alphabetical order; (diff) | |
download | wireguard-openbsd-7b76b7ccd2b587f6675491605c6e45bd03fc775d.tar.xz wireguard-openbsd-7b76b7ccd2b587f6675491605c6e45bd03fc775d.zip |
Add MaxAuthTries sshd config option; ok markus@
Diffstat (limited to 'usr.bin/ssh/auth1.c')
-rw-r--r-- | usr.bin/ssh/auth1.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/auth1.c b/usr.bin/ssh/auth1.c index a02acc9b8ca..980f96c65ed 100644 --- a/usr.bin/ssh/auth1.c +++ b/usr.bin/ssh/auth1.c @@ -10,7 +10,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: auth1.c,v 1.56 2004/05/09 01:19:27 djm Exp $"); +RCSID("$OpenBSD: auth1.c,v 1.57 2004/05/23 23:59:53 dtucker Exp $"); #include "xmalloc.h" #include "rsa.h" @@ -220,7 +220,7 @@ do_authloop(Authctxt *authctxt) if (authenticated) return; - if (authctxt->failures++ > AUTH_FAIL_MAX) + if (authctxt->failures++ > options.max_authtries) packet_disconnect(AUTH_FAIL_MSG, authctxt->user); packet_start(SSH_SMSG_FAILURE); |