Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 302964
Collapse All | Expand All

(-)src/pam_mount.c.orig (-1 / +3 lines)
Lines 457-463 Link Here
457
		ret = pam_set_data(pamh, "pam_mount_system_authtok",
457
		ret = pam_set_data(pamh, "pam_mount_system_authtok",
458
		      authtok, clean_system_authtok);
458
		      authtok, clean_system_authtok);
459
		if (ret == PAM_SUCCESS) {
459
		if (ret == PAM_SUCCESS) {
460
			if (mlock(authtok, strlen(authtok) + 1) < 0)
460
			if (authtok == NULL)
461
				w4rn("authtok is NULL in session code\n");
462
			else if (mlock(authtok, strlen(authtok) + 1) < 0)
461
				w4rn("mlock authtok: %s\n", strerror(errno));
463
				w4rn("mlock authtok: %s\n", strerror(errno));
462
		} else {
464
		} else {
463
			l0g("error trying to save authtok for session code\n");
465
			l0g("error trying to save authtok for session code\n");

Return to bug 302964