From: Marcus Brinkmann Date: Tue, 24 Oct 2006 09:22:33 +0000 (+0000) Subject: 2006-10-24 Marcus Brinkmann X-Git-Tag: gpgme-1.1.4~26 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=f44e7a64bba3fd1980fb1a6fac792bfaf4c3d36b;p=gpgme.git 2006-10-24 Marcus Brinkmann * trustlist.c (gpgme_op_trustlist_next): Return error if OPD is NULL. --- 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) {