diff options
Diffstat (limited to 'gpgme/keylist.c')
-rw-r--r-- | gpgme/keylist.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gpgme/keylist.c b/gpgme/keylist.c index 8e3fefe4..1c60da5c 100644 --- a/gpgme/keylist.c +++ b/gpgme/keylist.c @@ -883,6 +883,8 @@ gpgme_op_keylist_next (gpgme_ctx_t ctx, gpgme_key_t *r_key) opd = hook; if (err) return err; + if (opd == NULL) + return gpg_error (GPG_ERR_INV_VALUE); if (!opd->key_queue) { |