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

Collapse All | Expand All

(-)auth-pam.c (-1 / +3 lines)
Lines 356-361 sshpam_thread(void *ctxtp) Link Here
356
	struct pam_ctxt *ctxt = ctxtp;
356
	struct pam_ctxt *ctxt = ctxtp;
357
	Buffer buffer;
357
	Buffer buffer;
358
	struct pam_conv sshpam_conv;
358
	struct pam_conv sshpam_conv;
359
	int flags = (options.permit_empty_passwd == 0 ?
360
	    PAM_DISALLOW_NULL_AUTHTOK : 0);
359
#ifndef USE_POSIX_THREADS
361
#ifndef USE_POSIX_THREADS
360
	extern char **environ;
362
	extern char **environ;
361
	char **env_from_pam;
363
	char **env_from_pam;
Lines 378-384 sshpam_thread(void *ctxtp) Link Here
378
	    (const void *)&sshpam_conv);
380
	    (const void *)&sshpam_conv);
379
	if (sshpam_err != PAM_SUCCESS)
381
	if (sshpam_err != PAM_SUCCESS)
380
		goto auth_fail;
382
		goto auth_fail;
381
	sshpam_err = pam_authenticate(sshpam_handle, 0);
383
	sshpam_err = pam_authenticate(sshpam_handle, flags);
382
	if (sshpam_err != PAM_SUCCESS)
384
	if (sshpam_err != PAM_SUCCESS)
383
		goto auth_fail;
385
		goto auth_fail;
384
386

Return to bug 559