aboutsummaryrefslogtreecommitdiffstats
path: root/g10/trustdb.c
diff options
context:
space:
mode:
authorNeal H. Walfield <[email protected]>2015-10-29 09:18:13 +0000
committerNeal H. Walfield <[email protected]>2015-10-31 00:44:42 +0000
commit3ad5c815fddcd8403d5f9159a0fff3c84c066452 (patch)
treec0854476929442f9ad2639b5a2a036c641a2e3d0 /g10/trustdb.c
parentgpg: Display the correct error message. (diff)
downloadgnupg-neal/next.tar.gz
gnupg-neal/next.zip
New key db.neal/next
Diffstat (limited to 'g10/trustdb.c')
-rw-r--r--g10/trustdb.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/g10/trustdb.c b/g10/trustdb.c
index 64de98553..5a63e4f8e 100644
--- a/g10/trustdb.c
+++ b/g10/trustdb.c
@@ -1722,7 +1722,8 @@ validate_key_list (KEYDB_HANDLE hd, KeyHashTable full_trust,
desc.skipfnc = search_skipfnc;
desc.skipfncvalue = full_trust;
rc = keydb_search (hd, &desc, 1, NULL);
- if (gpg_err_code (rc) == GPG_ERR_NOT_FOUND)
+ if (gpg_err_code (rc) == GPG_ERR_NOT_FOUND
+ || gpg_err_code (rc) == GPG_ERR_EOF)
{
keys[nkeys].keyblock = NULL;
return keys;