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

Collapse All | Expand All

(-)auth-bsdauth.c (+3 lines)
Lines 83-88 Link Here
83
	Authctxt *authctxt = ctx;
83
	Authctxt *authctxt = ctx;
84
	int authok;
84
	int authok;
85
85
86
	if (!authctxt->valid)
87
		return -1;
88
86
	if (authctxt->as == 0)
89
	if (authctxt->as == 0)
87
		error("bsdauth_respond: no bsd auth session");
90
		error("bsdauth_respond: no bsd auth session");
88
91
(-)auth2-chall.c (-7 / +2 lines)
Lines 268-279 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,
273
		    nresp, response);
274
	} else {
275
		res = -1;
276
	}
277
272
278
	for (i = 0; i < nresp; i++) {
273
	for (i = 0; i < nresp; i++) {
279
		memset(response[i], 'r', strlen(response[i]));
274
		memset(response[i], 'r', strlen(response[i]));
Lines 285-291 Link Here
285
	switch (res) {
280
	switch (res) {
286
	case 0:
281
	case 0:
287
		/* Success! */
282
		/* Success! */
288
		authenticated = 1;
283
		authenticated = authctxt->valid ? 1 : 0;
289
		break;
284
		break;
290
	case 1:
285
	case 1:
291
		/* Authentication needs further interaction */
286
		/* Authentication needs further interaction */

Return to bug 971