Eliminate redundant NULL-checks in lower level sigchecking functions
authorPanu Matilainen <pmatilai@redhat.com>
Thu, 6 Oct 2011 09:56:13 +0000 (12:56 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Thu, 6 Oct 2011 09:56:13 +0000 (12:56 +0300)
commita2e59180274cc6f928b188da0e7211d01c421883
tree25f918df590802f31772cf7c0b89c8aae7b2be0e
parent9718ede792cc2f4028f7aa5e17ec16a5cf0d7ea7
Eliminate redundant NULL-checks in lower level sigchecking functions

- sigtd->data and dig checking (where needed) is done at
  rpmVerifySignature() level, dont bother double-checking
- Hash context is dup'ed, which CAN fail, so while we dont need
  to check the argument for non-null, the dup result needs to
  be checked for digests. For actual signatures the dup happens
  elsewhere, we dont need to check the argument for non-null here.
lib/signature.c