diff options
author | Darren Tucker <dtucker@zip.com.au> | 2008-07-04 12:53:23 +1000 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2008-07-04 12:53:23 +1000 |
commit | 7c99b1ceda9f6bfb1dc36bae30de0c6a49c6ec69 (patch) | |
tree | bf4298c69941d90bab1bfe99deef0803c5b96906 /auth2.c | |
parent | 4230a5dc305d1b39bc118befcc1ccfe933281b75 (diff) | |
download | openssh-git-7c99b1ceda9f6bfb1dc36bae30de0c6a49c6ec69.tar.gz |
- djm@cvs.openbsd.org 2008/07/02 13:30:34
[auth2.c]
really really remove the freebie "none" auth try for protocol 2
Diffstat (limited to 'auth2.c')
-rw-r--r-- | auth2.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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. * @@ -333,7 +333,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) { #ifdef SSH_AUDIT_EVENTS PRIVSEP(audit_event(SSH_LOGIN_EXCEED_MAXTRIES)); #endif |