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

Collapse All | Expand All

(-)auth2-chall.c (-7 / +4 lines)
Lines 268-279 input_userauth_info_response(int type, u Link Here
268
	}
268
	}
269
	packet_check_eom();
269
	packet_check_eom();
270
270
271
	if (authctxt->valid) {
271
	res = kbdintctxt->device->respond(kbdintctxt->ctxt, nresp, response);
272
		res = kbdintctxt->device->respond(kbdintctxt->ctxt,
272
	if (!authctxt->valid)
273
		    nresp, response);
273
		res = 1;	/* keep going if login invalid */
274
	} else {
275
		res = -1;
276
	}
277
274
278
	for (i = 0; i < nresp; i++) {
275
	for (i = 0; i < nresp; i++) {
279
		memset(response[i], 'r', strlen(response[i]));
276
		memset(response[i], 'r', strlen(response[i]));
Lines 285-291 input_userauth_info_response(int type, u Link Here
285
	switch (res) {
282
	switch (res) {
286
	case 0:
283
	case 0:
287
		/* Success! */
284
		/* Success! */
288
		authenticated = 1;
285
		authenticated = authctxt->valid ? 1 : 0;
289
		break;
286
		break;
290
	case 1:
287
	case 1:
291
		/* Authentication needs further interaction */
288
		/* Authentication needs further interaction */

Return to bug 971