Blame ecryptfs-utils-111-nopasswd.patch

fc5156
diff -up ecryptfs-utils-111/src/pam_ecryptfs/pam_ecryptfs.c.nopasswd ecryptfs-utils-111/src/pam_ecryptfs/pam_ecryptfs.c
fc5156
--- ecryptfs-utils-111/src/pam_ecryptfs/pam_ecryptfs.c.nopasswd	2017-02-01 14:04:48.313349236 +0100
fc5156
+++ ecryptfs-utils-111/src/pam_ecryptfs/pam_ecryptfs.c	2017-02-01 14:05:34.461694263 +0100
fc5156
@@ -190,6 +190,10 @@ PAM_EXTERN int pam_sm_authenticate(pam_h
fc5156
 		       rc);
fc5156
 		goto out;
fc5156
 	}
fc5156
+	if (!epd->passphrase) {
fc5156
+		ecryptfs_syslog(LOG_WARNING, "pam_ecryptfs: No passphrase available");
fc5156
+		goto out;
fc5156
+	}
fc5156
 	epd->passphrase = strdup(epd->passphrase);
fc5156
 	rc = ecryptfs_read_salt_hex_from_rc(salt_hex);
fc5156
 	if (rc) {