From b975ff0428c799be49f2a67a380d03c8a7984cf6 Mon Sep 17 00:00:00 2001 From: Marcus Brinkmann Date: Mon, 23 Oct 2006 17:17:25 +0000 Subject: [PATCH] 2006-10-23 Marcus Brinkmann * keylist.c (gpgme_op_keylist_next): Return error if OPD is NULL. --- trunk/gpgme/ChangeLog | 4 ++++ trunk/gpgme/keylist.c | 2 ++ 2 files changed, 6 insertions(+) diff --git a/trunk/gpgme/ChangeLog b/trunk/gpgme/ChangeLog index 6f27890..9dce595 100644 --- a/trunk/gpgme/ChangeLog +++ b/trunk/gpgme/ChangeLog @@ -1,3 +1,7 @@ +2006-10-23 Marcus Brinkmann + + * keylist.c (gpgme_op_keylist_next): Return error if OPD is NULL. + 2006-09-25 Marcus Brinkmann * data-mem.c (gpgme_data_release_and_get_mem): Release the data diff --git a/trunk/gpgme/keylist.c b/trunk/gpgme/keylist.c index 8e3fefe..1c60da5 100644 --- a/trunk/gpgme/keylist.c +++ b/trunk/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) { -- 2.26.2