From: Werner Koch Date: Thu, 15 Apr 2004 15:18:30 +0000 (+0000) Subject: (gpgme_get_key): Return an error if FPR is NULL. X-Git-Tag: gpgme-0-9-0~30 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a33e7ba3c780c319496d9f3b71c6ce7dcc4d01cd;p=gpgme.git (gpgme_get_key): Return an error if FPR is NULL. --- diff --git a/gpgme/ChangeLog b/gpgme/ChangeLog index 26c4630..94e407f 100644 --- a/gpgme/ChangeLog +++ b/gpgme/ChangeLog @@ -1,3 +1,7 @@ +2004-04-15 Werner Koch + + * keylist.c (gpgme_get_key): Return an error if FPR is NULL. + 2004-04-08 Werner Koch * verify.c (_gpgme_verify_status_handler): Ignore the error status diff --git a/gpgme/keylist.c b/gpgme/keylist.c index 99499de..eb8597e 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. */