aboutsummaryrefslogtreecommitdiffstats
path: root/sm
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2008-05-06 14:03:36 +0000
committerWerner Koch <[email protected]>2008-05-06 14:03:36 +0000
commit4254e90426a97afaed1af3f4caa01cc2f4021fb6 (patch)
tree82e0123ba381605484c332038504dae8e967b2e7 /sm
parentadd gpg-zip man page. (diff)
downloadgnupg-4254e90426a97afaed1af3f4caa01cc2f4021fb6.tar.gz
gnupg-4254e90426a97afaed1af3f4caa01cc2f4021fb6.zip
Fixed bug#907.
Fixed a segv in keybox and made it more robust.
Diffstat (limited to 'sm')
-rw-r--r--sm/ChangeLog5
-rw-r--r--sm/keylist.c3
2 files changed, 8 insertions, 0 deletions
diff --git a/sm/ChangeLog b/sm/ChangeLog
index 7fad93802..09e249dd2 100644
--- a/sm/ChangeLog
+++ b/sm/ChangeLog
@@ -1,3 +1,8 @@
+2008-05-06 Werner Koch <[email protected]>
+
+ * keylist.c (list_external_keys): Ignore NOT FOUND error code.
+ This is bug#907.
+
2008-04-23 Werner Koch <[email protected]>
* certchain.c (find_up): Make correct C89 code. Declare variable
diff --git a/sm/keylist.c b/sm/keylist.c
index 5f3a88136..870ddf46d 100644
--- a/sm/keylist.c
+++ b/sm/keylist.c
@@ -1383,6 +1383,9 @@ list_external_keys (ctrl_t ctrl, strlist_t names, estream_t fp, int raw_mode)
parm.raw_mode = raw_mode;
rc = gpgsm_dirmngr_lookup (ctrl, names, 0, list_external_cb, &parm);
+ if (gpg_err_code (rc) == GPG_ERR_EOF || rc == -1
+ || gpg_err_code (rc) == GPG_ERR_NOT_FOUND)
+ rc = 0; /* "Not found" is not an error here. */
if (rc)
log_error ("listing external keys failed: %s\n", gpg_strerror (rc));
return rc;