diff options
author | Damien Miller <djm@cvs.openbsd.org> | 2014-12-18 23:58:05 +0000 |
---|---|---|
committer | Damien Miller <djm@cvs.openbsd.org> | 2014-12-18 23:58:05 +0000 |
commit | 68ea8118c5b0609ccf425ed65ac54c4efd2c91c4 (patch) | |
tree | 019aee3fc43da8ac9404c0b636fb5c1689012907 /usr.bin/ssh/auth2.c | |
parent | 7e41ca48cdadb444707d45fe93aa3aa8c48fcfc9 (diff) |
don't count partial authentication success as a failure against
MaxAuthTries; ok deraadt@
Diffstat (limited to 'usr.bin/ssh/auth2.c')
-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 cf6443dd7a9..43eada23f22 100644 --- a/usr.bin/ssh/auth2.c +++ b/usr.bin/ssh/auth2.c @@ -1,4 +1,4 @@ -/* $OpenBSD: auth2.c,v 1.132 2014/07/15 15:54:14 millert Exp $ */ +/* $OpenBSD: auth2.c,v 1.133 2014/12/18 23:58:04 djm Exp $ */ /* * Copyright (c) 2000 Markus Friedl. All rights reserved. * @@ -309,7 +309,7 @@ userauth_finish(Authctxt *authctxt, int authenticated, const char *method, authctxt->success = 1; } else { /* Allow initial try of "none" auth without failure penalty */ - if (!authctxt->server_caused_failure && + if (!partial && !authctxt->server_caused_failure && (authctxt->attempt > 1 || strcmp(method, "none") != 0)) authctxt->failures++; if (authctxt->failures >= options.max_authtries) |