8dd1aac03e
- abort transaction on python callback crash - package signing fixes (#442761, #463482) - fix uncompress macro wrt bzip - force cloexec all open descriptors on scriptlet execution - make find-lang --with-man brp-compress friendly - handle headerLoad() failure in rpmReadHeader() correctly - fix --nodirtokens build option (#462391) - drop no longer necessary jar.so.debug kludge (#442264) - remove buggy, i386-specific RDTSC timing code (#435309) - fix retrieval of multiple package through a proxy (#450205) - ensure default SIGPIPE handler for --pipe (#444389)
19 lines
576 B
Diff
19 lines
576 B
Diff
commit 0dbf5280540ed78faaa509d8653526cb0f334190
|
|
Author: Panu Matilainen <pmatilai@redhat.com>
|
|
Date: Thu Sep 18 14:34:42 2008 +0300
|
|
|
|
Force error return if headerLoad() fails
|
|
|
|
diff --git a/lib/package.c b/lib/package.c
|
|
index 09571b0..d026226 100644
|
|
--- a/lib/package.c
|
|
+++ b/lib/package.c
|
|
@@ -721,6 +721,7 @@ rpmRC rpmReadHeader(rpmts ts, FD_t fd, Header *hdrp, const char ** msg)
|
|
h = headerLoad(ei);
|
|
if (h == NULL) {
|
|
(void) snprintf(buf, sizeof(buf), _("hdr load: BAD\n"));
|
|
+ rc = RPMRC_FAIL;
|
|
goto exit;
|
|
}
|
|
h->flags |= HEADERFLAG_ALLOCATED;
|