cc9a73
--- libarchive-3.5.1/libarchive/archive_digest.c.old	2021-05-27 15:46:54.988302284 +0200
cc9a73
+++ libarchive-3.5.1/libarchive/archive_digest.c	2021-05-27 15:50:03.519746886 +0200
cc9a73
@@ -432,9 +432,11 @@
cc9a73
 static int
cc9a73
 __archive_ripemd160init(archive_rmd160_ctx *ctx)
cc9a73
 {
cc9a73
+  int ret;
cc9a73
   if ((*ctx = EVP_MD_CTX_new()) == NULL)
cc9a73
 	return (ARCHIVE_FAILED);
cc9a73
-  EVP_DigestInit(*ctx, EVP_ripemd160());
cc9a73
+  if (!(ret = EVP_DigestInit(*ctx, EVP_ripemd160())))
cc9a73
+	return (ARCHIVE_FAILED);
cc9a73
   return (ARCHIVE_OK);
cc9a73
 }
cc9a73