summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2016-09-13 22:48:35 +0200
committerRichard Levitte <levitte@openssl.org>2016-09-14 00:30:50 +0200
commit9f9f962d96425ed741569460791eee0280fcf942 (patch)
treece182e4f9ce1c192e7cb6b5461378addd8363cad /apps
parent06a79af200b5ad0e5f5f078dc726c20c78f11885 (diff)
Fix 'openssl passwd' with arguments -1 or -apr1
RT#4674 Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'apps')
-rw-r--r--apps/passwd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/passwd.c b/apps/passwd.c
index e2c90960e5..a45245cd7f 100644
--- a/apps/passwd.c
+++ b/apps/passwd.c
@@ -319,6 +319,7 @@ static char *md5crypt(const char *passwd, const char *magic, const char *salt)
|| !EVP_DigestUpdate(md, magic, magic_len)
|| !EVP_DigestUpdate(md, "$", 1)
|| !EVP_DigestUpdate(md, salt_out, salt_len))
+ goto err;
md2 = EVP_MD_CTX_new();
if (md2 == NULL