Blame SOURCES/0009-Drop-redundant-check-on-hash-algo-name.patch

45afda
From efd41edd0c9ba848814a5434d986338c1691418e Mon Sep 17 00:00:00 2001
45afda
From: Panu Matilainen <pmatilai@redhat.com>
45afda
Date: Tue, 10 Oct 2017 15:20:16 +0300
45afda
Subject: [PATCH 09/33] Drop redundant check on hash algo name
45afda
45afda
The array is already size-validated, me thinks we can safely
45afda
assume the array to be populated with non-NULL values.
45afda
---
45afda
 sign/rpmsignfiles.c | 4 ----
45afda
 1 file changed, 4 deletions(-)
45afda
45afda
diff --git a/sign/rpmsignfiles.c b/sign/rpmsignfiles.c
45afda
index 9fe6e6d41..4876f66f2 100644
45afda
--- a/sign/rpmsignfiles.c
45afda
+++ b/sign/rpmsignfiles.c
45afda
@@ -87,10 +87,6 @@ rpmRC rpmSignFiles(Header sigh, Header h, const char *key, char *keypass)
45afda
 
45afda
     diglen = rpmDigestLength(algo);
45afda
     algoname = hash_algo_name[algo];
45afda
-    if (!algoname) {
45afda
-	rpmlog(RPMLOG_ERR, _("hash_algo_name failed\n"));
45afda
-	goto exit;
45afda
-    }
45afda
 
45afda
     headerDel(sigh, RPMTAG_FILESIGNATURELENGTH);
45afda
     headerDel(sigh, RPMTAG_FILESIGNATURES);
45afda
-- 
45afda
2.27.0
45afda