summaryrefslogtreecommitdiff
path: root/lib/signature.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/signature.c')
-rw-r--r--lib/signature.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/signature.c b/lib/signature.c
index 732be4f7f..78b134a7f 100644
--- a/lib/signature.c
+++ b/lib/signature.c
@@ -976,7 +976,7 @@ verifySHA1Signature(const rpmts ts, /*@out@*/ char * t,
(void) rpmDigestFinal(rpmDigestDup(sha1ctx),
(void **)&SHA1, NULL, 1);
- if (SHA1 == NULL || strlen(SHA1) != strlen(sig)) {
+ if (SHA1 == NULL || strlen(SHA1) != strlen(sig) || strcmp(SHA1, sig)) {
res = RPMSIG_BAD;
t = stpcpy(t, rpmSigString(res));
t = stpcpy(t, " Expected(");