summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2020-01-09 10:24:39 +0200
committerPanu Matilainen <pmatilai@redhat.com>2020-03-26 11:57:58 +0200
commitf127976964f6e1bccb7e5c65aba3cf7031efee36 (patch)
treedb99381c3f355de3335d1ababb961a275b9ae680
parent96df17cfd506ecc8646190bba65ce64e1e79baa7 (diff)
downloadrpm-f127976964f6e1bccb7e5c65aba3cf7031efee36.tar.gz
Don't require signature header to be in single contiguous region part II
The generic case was reported in #270 and fixed quite a while ago in commit 34c2ba3c6a80a778cdf2e42a9193b3264e08e1b3, but signing uses a different code path and require the same treatment. Fixes: #1002 (cherry picked from commit bb30f997c4b22c0d5cf6752f15d2af17538f91f0)
-rw-r--r--lib/signature.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/signature.c b/lib/signature.c
index 6f04962e8..21f04c7f2 100644
--- a/lib/signature.c
+++ b/lib/signature.c
@@ -65,7 +65,7 @@ rpmRC rpmReadSignature(FD_t fd, Header * sighp, char ** msg)
if (sighp)
*sighp = NULL;
- if (hdrblobRead(fd, 1, 1, RPMTAG_HEADERSIGNATURES, &blob, &buf) != RPMRC_OK)
+ if (hdrblobRead(fd, 1, 0, RPMTAG_HEADERSIGNATURES, &blob, &buf) != RPMRC_OK)
goto exit;
/* OK, blob looks sane, load the header. */