mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-22 10:19:57 +01:00
gpg: Make keyidlist more robust in case of errors.
* g10/keyserver.c (keyidlist): Clear *KLIST on error. Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
a28ac99efe
commit
50a568e738
@ -1346,7 +1346,10 @@ keyidlist(strlist_t users,KEYDB_SEARCH_DESC **klist,int *count,int fakev3)
|
||||
|
||||
leave:
|
||||
if(rc)
|
||||
{
|
||||
xfree(*klist);
|
||||
*klist = NULL;
|
||||
}
|
||||
xfree(desc);
|
||||
keydb_release(kdbhd);
|
||||
release_kbnode(keyblock);
|
||||
|
Loading…
x
Reference in New Issue
Block a user