View | Details | Raw Unified | Return to bug 2270
Collapse All | Expand All

(-)a/auth2.c (-2 / +3 lines)
Lines 355-362 userauth_finish(Authctxt *authctxt, int authenticated, const char *method, Link Here
355
		authctxt->success = 1;
355
		authctxt->success = 1;
356
	} else {
356
	} else {
357
357
358
		/* Allow initial try of "none" auth without failure penalty */
358
		/* Allow initial try of "none" auth without failure penalty
359
		if (!authctxt->server_caused_failure &&
359
		 * Partial succes is not failure */
360
		if (!authctxt->server_caused_failure && !partial &&
360
		    (authctxt->attempt > 1 || strcmp(method, "none") != 0))
361
		    (authctxt->attempt > 1 || strcmp(method, "none") != 0))
361
			authctxt->failures++;
362
			authctxt->failures++;
362
		if (authctxt->failures >= options.max_authtries) {
363
		if (authctxt->failures >= options.max_authtries) {

Return to bug 2270