aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--gpgme/ChangeLog4
-rw-r--r--gpgme/keylist.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/gpgme/ChangeLog b/gpgme/ChangeLog
index 26c46308..94e407fc 100644
--- a/gpgme/ChangeLog
+++ b/gpgme/ChangeLog
@@ -1,3 +1,7 @@
+2004-04-15 Werner Koch <[email protected]>
+
+ * keylist.c (gpgme_get_key): Return an error if FPR is NULL.
+
2004-04-08 Werner Koch <[email protected]>
* verify.c (_gpgme_verify_status_handler): Ignore the error status
diff --git a/gpgme/keylist.c b/gpgme/keylist.c
index 99499de5..eb8597e2 100644
--- a/gpgme/keylist.c
+++ b/gpgme/keylist.c
@@ -838,7 +838,7 @@ gpgme_get_key (gpgme_ctx_t ctx, const char *fpr, gpgme_key_t *r_key,
gpgme_error_t err;
gpgme_key_t key;
- if (!ctx || !r_key)
+ if (!ctx || !r_key || !fpr)
return gpg_error (GPG_ERR_INV_VALUE);
if (strlen (fpr) < 16) /* We have at least a key ID. */