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

* keylist.c (gpgme_op_keylist_next): Return error if OPD is NULL.
This commit is contained in:
Marcus Brinkmann 2006-10-23 17:17:25 +00:00
parent 9247e9081b
commit aeef0402a7
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2006-10-23 Marcus Brinkmann <marcus@g10code.de>
* keylist.c (gpgme_op_keylist_next): Return error if OPD is NULL.
2006-09-25 Marcus Brinkmann <marcus@g10code.de> 2006-09-25 Marcus Brinkmann <marcus@g10code.de>
* data-mem.c (gpgme_data_release_and_get_mem): Release the data * data-mem.c (gpgme_data_release_and_get_mem): Release the data

View File

@ -883,6 +883,8 @@ gpgme_op_keylist_next (gpgme_ctx_t ctx, gpgme_key_t *r_key)
opd = hook; opd = hook;
if (err) if (err)
return err; return err;
if (opd == NULL)
return gpg_error (GPG_ERR_INV_VALUE);
if (!opd->key_queue) if (!opd->key_queue)
{ {