Dont crash on NULL ts to rpmtsInitIterator()
This commit is contained in:
parent
3f38850609
commit
be1c4872c1
|
@ -154,7 +154,10 @@ rpmdbMatchIterator rpmtsInitIterator(const rpmts ts, rpmTag rpmtag,
|
|||
char *tmp = NULL;
|
||||
int xx;
|
||||
|
||||
if (ts->keyring == NULL)
|
||||
if (ts == NULL)
|
||||
return NULL;
|
||||
|
||||
if (ts && ts->keyring == NULL)
|
||||
loadKeyring(ts);
|
||||
|
||||
if (ts->rdb == NULL && rpmtsOpenDB(ts, ts->dbmode))
|
||||
|
|
Loading…
Reference in New Issue