Verify header sanity as the first thing in rpmdbAdd()
authorPanu Matilainen <pmatilai@redhat.com>
Wed, 7 Apr 2010 05:58:23 +0000 (08:58 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Wed, 7 Apr 2010 07:03:28 +0000 (10:03 +0300)
commita5039afa3f974384cbd69530ec59449df3e1d445
tree002c636d18adb60c48a7e18530087a6f2b183950
parentf40ea7e359df44f3db24391f966abfa9bad556be
Verify header sanity as the first thing in rpmdbAdd()
- avoid allocating header instance for something that we'd fail to add
- avoid possibly adding data to indexes even if adding the header
  itself fails, duh
lib/rpmdb.c