diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2016-11-23 09:00:52 +0200 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2016-11-23 11:06:48 +0200 |
commit | 648becc09167747849e9958cb1ffb38b1b766de7 (patch) | |
tree | 33dc1eb63a4c4079cad03e1fc420381f9db02cc2 | |
parent | 7f47cbbd7d1600ae280e48a655c9e870cf9361e0 (diff) | |
download | rpm-648becc09167747849e9958cb1ffb38b1b766de7.tar.gz |
Drop a few hysterical checks from signature header merging code
We're operating on data already retrieved from an already imported
header, all the data we could possibly recieve here is type and
and size checked many times already.
-rw-r--r-- | lib/package.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/package.c b/lib/package.c index 25d9501c3..81e65848d 100644 --- a/lib/package.c +++ b/lib/package.c @@ -62,12 +62,7 @@ static void headerMergeLegacySigs(Header h, Header sigh) continue; break; } - if (td.data == NULL) continue; /* XXX can't happen */ if (!headerIsEntry(h, td.tag)) { - if (hdrchkType(td.type)) - continue; - if (td.count < 0 || hdrchkData(td.count)) - continue; switch(td.type) { case RPM_NULL_TYPE: continue; |