diff options
author | Damien Miller <djm@cvs.openbsd.org> | 2008-07-02 13:30:35 +0000 |
---|---|---|
committer | Damien Miller <djm@cvs.openbsd.org> | 2008-07-02 13:30:35 +0000 |
commit | e3ed5eaedd8fa5f458bc0e8bc8fe6c3e2de235e7 (patch) | |
tree | 8738be3359bcb6aa15574666431c17fe233d375c /usr.bin/ssh | |
parent | d252894a690953ef3714f49033556452d3778c48 (diff) |
really really remove the freebie "none" auth try for protocol 2
Diffstat (limited to 'usr.bin/ssh')
-rw-r--r-- | usr.bin/ssh/auth2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/auth2.c b/usr.bin/ssh/auth2.c index d3bbd22b73f..b1385d9a6d5 100644 --- a/usr.bin/ssh/auth2.c +++ b/usr.bin/ssh/auth2.c @@ -1,4 +1,4 @@ -/* $OpenBSD: auth2.c,v 1.117 2008/07/02 12:36:39 djm Exp $ */ +/* $OpenBSD: auth2.c,v 1.118 2008/07/02 13:30:34 djm Exp $ */ /* * Copyright (c) 2000 Markus Friedl. All rights reserved. * @@ -288,7 +288,7 @@ userauth_finish(Authctxt *authctxt, int authenticated, char *method) /* now we can break out */ authctxt->success = 1; } else { - if (++authctxt->failures > options.max_authtries) + if (++authctxt->failures >= options.max_authtries) packet_disconnect(AUTH_FAIL_MSG, authctxt->user); methods = authmethods_get(); packet_start(SSH2_MSG_USERAUTH_FAILURE); |