summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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