diff options
Diffstat (limited to 'auth2.c')
-rw-r--r-- | auth2.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: auth2.c,v 1.117 2008/07/02 12:36:39 djm Exp $ */ | 1 | /* $OpenBSD: auth2.c,v 1.118 2008/07/02 13:30:34 djm Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2000 Markus Friedl. All rights reserved. | 3 | * Copyright (c) 2000 Markus Friedl. All rights reserved. |
4 | * | 4 | * |
@@ -333,7 +333,7 @@ userauth_finish(Authctxt *authctxt, int authenticated, char *method) | |||
333 | /* now we can break out */ | 333 | /* now we can break out */ |
334 | authctxt->success = 1; | 334 | authctxt->success = 1; |
335 | } else { | 335 | } else { |
336 | if (++authctxt->failures > options.max_authtries) { | 336 | if (++authctxt->failures >= options.max_authtries) { |
337 | #ifdef SSH_AUDIT_EVENTS | 337 | #ifdef SSH_AUDIT_EVENTS |
338 | PRIVSEP(audit_event(SSH_LOGIN_EXCEED_MAXTRIES)); | 338 | PRIVSEP(audit_event(SSH_LOGIN_EXCEED_MAXTRIES)); |
339 | #endif | 339 | #endif |