Blame SOURCES/openssl3-rmd160failure.patch

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