diff options
Diffstat (limited to 'lib/rpmfi.c')
-rw-r--r-- | lib/rpmfi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rpmfi.c b/lib/rpmfi.c index d36263248..33b657aa2 100644 --- a/lib/rpmfi.c +++ b/lib/rpmfi.c @@ -1599,7 +1599,7 @@ static uint8_t *base2bin(Header h, rpmTagVal tag, rpm_count_t num, int *len) size_t *lengths = xcalloc(num, sizeof(size_t)); const char *s; - if (headerGet(h, tag, &td, HEADERGET_MINMEM) && rpmtdCount(&td) != num) + if (!headerGet(h, tag, &td, HEADERGET_MINMEM) || rpmtdCount(&td) != num) goto out; while ((s = rpmtdNextString(&td))) { |