From f44e7a64bba3fd1980fb1a6fac792bfaf4c3d36b Mon Sep 17 00:00:00 2001 From: Marcus Brinkmann Date: Tue, 24 Oct 2006 09:22:33 +0000 Subject: [PATCH] 2006-10-24 Marcus Brinkmann * trustlist.c (gpgme_op_trustlist_next): Return error if OPD is NULL. --- gpgme/ChangeLog | 5 +++++ gpgme/trustlist.c | 2 ++ 2 files changed, 7 insertions(+) diff --git a/gpgme/ChangeLog b/gpgme/ChangeLog index f3b78b5..b773ef9 100644 --- a/gpgme/ChangeLog +++ b/gpgme/ChangeLog @@ -1,3 +1,8 @@ +2006-10-24 Marcus Brinkmann + + * trustlist.c (gpgme_op_trustlist_next): Return error if OPD is + NULL. + 2006-10-23 Marcus Brinkmann * wait-global.c (gpgme_wait): Unlock CTX_LIST_LOCK while calling diff --git a/gpgme/trustlist.c b/gpgme/trustlist.c index f33860a..e8cdb66 100644 --- a/gpgme/trustlist.c +++ b/gpgme/trustlist.c @@ -215,6 +215,8 @@ gpgme_op_trustlist_next (gpgme_ctx_t ctx, gpgme_trust_item_t *r_item) opd = hook; if (err) return err; + if (opd == NULL) + return gpg_error (GPG_ERR_INV_VALUE); if (!opd->trust_queue) { -- 2.26.2