You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
632 B
17 lines
632 B
7 years ago
|
diff --git a/auth2.c b/auth2.c
|
||
|
index d9b440a..ec0bf12 100644
|
||
|
--- a/auth2.c
|
||
|
+++ b/auth2.c
|
||
|
@@ -355,8 +355,9 @@ 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 &&
|
||
|
+ /* Allow initial try of "none" auth without failure penalty
|
||
|
+ * Partial succes is not failure */
|
||
|
+ if (!authctxt->server_caused_failure && !partial &&
|
||
|
(authctxt->attempt > 1 || strcmp(method, "none") != 0))
|
||
|
authctxt->failures++;
|
||
|
if (authctxt->failures >= options.max_authtries) {
|