aboutsummaryrefslogtreecommitdiff
path: root/modules/pam_unix/md5_crypt.c
diff options
context:
space:
mode:
authorSteve Langasek <vorlon@debian.org>2019-01-22 14:54:11 -0800
committerSteve Langasek <vorlon@debian.org>2019-01-22 14:54:11 -0800
commitf00afb1ef201b2eef7f9ddbe5a0c6ca802cf49bb (patch)
tree402838c53047b0e21466a653ae88d86a8e4b7b65 /modules/pam_unix/md5_crypt.c
parent795badba7f95e737f979917859cd32c9bd47bcad (diff)
parent1cad9fb2a0d729c5b5e5aa7297c521df7d5a2d33 (diff)
downloadpam-f00afb1ef201b2eef7f9ddbe5a0c6ca802cf49bb.tar.gz
pam-f00afb1ef201b2eef7f9ddbe5a0c6ca802cf49bb.tar.bz2
pam-f00afb1ef201b2eef7f9ddbe5a0c6ca802cf49bb.zip
New upstream version 1.3.0
Diffstat (limited to 'modules/pam_unix/md5_crypt.c')
-rw-r--r--modules/pam_unix/md5_crypt.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/pam_unix/md5_crypt.c b/modules/pam_unix/md5_crypt.c
index 53972fcc..4ab9ec84 100644
--- a/modules/pam_unix/md5_crypt.c
+++ b/modules/pam_unix/md5_crypt.c
@@ -51,6 +51,8 @@ char *MD5Name(crypt_md5)(const char *pw, const char *salt)
/* TODO: now that we're using malloc'ed memory, get rid of the
strange constant buffer size. */
passwd = malloc(120);
+ if (passwd == NULL)
+ return NULL;
/* If it starts with the magic string, then skip that */
if (!strncmp(sp, magic, strlen(magic)))