(gpgme_get_key): Return an error if FPR is NULL.
This commit is contained in:
parent
162ebc3b04
commit
a33e7ba3c7
@ -1,3 +1,7 @@
|
|||||||
|
2004-04-15 Werner Koch <wk@gnupg.org>
|
||||||
|
|
||||||
|
* keylist.c (gpgme_get_key): Return an error if FPR is NULL.
|
||||||
|
|
||||||
2004-04-08 Werner Koch <wk@gnupg.org>
|
2004-04-08 Werner Koch <wk@gnupg.org>
|
||||||
|
|
||||||
* verify.c (_gpgme_verify_status_handler): Ignore the error status
|
* verify.c (_gpgme_verify_status_handler): Ignore the error status
|
||||||
|
@ -838,7 +838,7 @@ gpgme_get_key (gpgme_ctx_t ctx, const char *fpr, gpgme_key_t *r_key,
|
|||||||
gpgme_error_t err;
|
gpgme_error_t err;
|
||||||
gpgme_key_t key;
|
gpgme_key_t key;
|
||||||
|
|
||||||
if (!ctx || !r_key)
|
if (!ctx || !r_key || !fpr)
|
||||||
return gpg_error (GPG_ERR_INV_VALUE);
|
return gpg_error (GPG_ERR_INV_VALUE);
|
||||||
|
|
||||||
if (strlen (fpr) < 16) /* We have at least a key ID. */
|
if (strlen (fpr) < 16) /* We have at least a key ID. */
|
||||||
|
Loading…
Reference in New Issue
Block a user