Blame openssh-6.6.1p1-partial-success.patch
|
Petr Lautrbach |
ce2d80 |
diff --git a/auth2.c b/auth2.c
|
|
Petr Lautrbach |
ce2d80 |
index d9b440a..ec0bf12 100644
|
|
Petr Lautrbach |
ce2d80 |
--- a/auth2.c
|
|
Petr Lautrbach |
ce2d80 |
+++ b/auth2.c
|
|
Petr Lautrbach |
ce2d80 |
@@ -355,8 +355,9 @@ userauth_finish(Authctxt *authctxt, int authenticated, const char *method,
|
|
Petr Lautrbach |
ce2d80 |
authctxt->success = 1;
|
|
Petr Lautrbach |
ce2d80 |
} else {
|
|
Petr Lautrbach |
ce2d80 |
|
|
Petr Lautrbach |
ce2d80 |
- /* Allow initial try of "none" auth without failure penalty */
|
|
Petr Lautrbach |
ce2d80 |
- if (!authctxt->server_caused_failure &&
|
|
Petr Lautrbach |
ce2d80 |
+ /* Allow initial try of "none" auth without failure penalty
|
|
Petr Lautrbach |
ce2d80 |
+ * Partial succes is not failure */
|
|
Petr Lautrbach |
ce2d80 |
+ if (!authctxt->server_caused_failure && !partial &&
|
|
Petr Lautrbach |
ce2d80 |
(authctxt->attempt > 1 || strcmp(method, "none") != 0))
|
|
Petr Lautrbach |
ce2d80 |
authctxt->failures++;
|
|
Petr Lautrbach |
ce2d80 |
if (authctxt->failures >= options.max_authtries) {
|