1
0
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:
Neal H. Walfield 2015-11-17 12:56:55 +01:00
parent ad9befab12
commit 848726f5c0

View File

@ -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);