2006-10-24 Marcus Brinkmann <marcus@g10code.de>

* trustlist.c (gpgme_op_trustlist_next): Return error if OPD is
	NULL.
This commit is contained in:
Marcus Brinkmann 2006-10-24 09:22:33 +00:00
parent ebb8edbb30
commit f44e7a64bb
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2006-10-24 Marcus Brinkmann <marcus@g10code.de>
* trustlist.c (gpgme_op_trustlist_next): Return error if OPD is
NULL.
2006-10-23 Marcus Brinkmann <marcus@g10code.de>
* wait-global.c (gpgme_wait): Unlock CTX_LIST_LOCK while calling

View File

@ -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)
{