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

(-)auth-pam.c (-1 / +11 lines)
Lines 691-698 sshpam_query(void *ctx, char **name, cha Link Here
691
			plen++;
691
			plen++;
692
			xfree(msg);
692
			xfree(msg);
693
			break;
693
			break;
694
		case PAM_SUCCESS:
695
		case PAM_AUTH_ERR:
694
		case PAM_AUTH_ERR:
695
			debug3("PAM: PAM_AUTH_ERR");
696
			if (**prompts != NULL && strlen(**prompts) != 0) {
697
				*info = **prompts;
698
				**prompts = NULL;
699
				*num = 0;
700
				**echo_on = 0;
701
				ctxt->pam_done = -1;
702
				return 0;
703
			}
704
			/* FALLTHROUGH */
705
		case PAM_SUCCESS:
696
			if (**prompts != NULL) {
706
			if (**prompts != NULL) {
697
				/* drain any accumulated messages */
707
				/* drain any accumulated messages */
698
				debug("PAM: %s", **prompts);
708
				debug("PAM: %s", **prompts);

Return to bug 1028