mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-22 10:19:57 +01:00
gpg: Correctly handle an error.
* g10/keyring.c (keyring_search): If a compare function returns an error, treat it as an error. -- Signed-off-by: Neal H. Walfield <neal@g10code.com>
This commit is contained in:
parent
ad9befab12
commit
848726f5c0
@ -1202,6 +1202,9 @@ keyring_search (KEYRING_HANDLE hd, KEYDB_SEARCH_DESC *desc,
|
|||||||
free_packet (&pkt);
|
free_packet (&pkt);
|
||||||
continue;
|
continue;
|
||||||
found:
|
found:
|
||||||
|
if (rc)
|
||||||
|
goto real_found;
|
||||||
|
|
||||||
if (DBG_LOOKUP)
|
if (DBG_LOOKUP)
|
||||||
log_debug ("%s: packet starting at offset %zx matched descriptor %zd\n",
|
log_debug ("%s: packet starting at offset %zx matched descriptor %zd\n",
|
||||||
__func__, offset, n);
|
__func__, offset, n);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user