View | Details | Raw Unified | Return to bug 702 | Differences between
and this patch

Collapse All | Expand All

(-)auth2-chall.c (-7 / +8 lines)
Lines 310-324 Link Here
310
	snprintf(method, len, "keyboard-interactive/%s",
310
	snprintf(method, len, "keyboard-interactive/%s",
311
	    kbdintctxt->device->name);
311
	    kbdintctxt->device->name);
312
312
313
	if (!authctxt->postponed && !authenticated) {
313
	if (!authctxt->postponed) {
314
		/* start next device */
314
		if (authenticated) {
315
		/* may set authctxt->postponed */
315
			auth2_challenge_stop(authctxt);
316
		auth2_challenge_start(authctxt);
316
		} else {
317
			/* start next device */
318
			/* may set authctxt->postponed */
319
			auth2_challenge_start(authctxt);
320
		}
317
	}
321
	}
318
	userauth_finish(authctxt, authenticated, method);
322
	userauth_finish(authctxt, authenticated, method);
319
	if (!authctxt->postponed && authenticated) {
320
		auth2_challenge_stop(authctxt);
321
	}
322
	xfree(method);
323
	xfree(method);
323
}
324
}
324
325

Return to bug 702