mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-09 12:54:23 +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:
|
leave:
|
||||||
if(rc)
|
if(rc)
|
||||||
|
{
|
||||||
xfree(*klist);
|
xfree(*klist);
|
||||||
|
*klist = NULL;
|
||||||
|
}
|
||||||
xfree(desc);
|
xfree(desc);
|
||||||
keydb_release(kdbhd);
|
keydb_release(kdbhd);
|
||||||
release_kbnode(keyblock);
|
release_kbnode(keyblock);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user