[svn] gpgme - r1183 - trunk/gpgme

svn author marcus cvs at cvs.gnupg.org
Mon Oct 23 19:17:26 CEST 2006


Author: marcus
Date: 2006-10-23 19:17:25 +0200 (Mon, 23 Oct 2006)
New Revision: 1183

Modified:
   trunk/gpgme/ChangeLog
   trunk/gpgme/keylist.c
Log:
2006-10-23  Marcus Brinkmann  <marcus at g10code.de>

	* keylist.c (gpgme_op_keylist_next): Return error if OPD is NULL.


Modified: trunk/gpgme/ChangeLog
===================================================================
--- trunk/gpgme/ChangeLog	2006-09-25 14:57:00 UTC (rev 1182)
+++ trunk/gpgme/ChangeLog	2006-10-23 17:17:25 UTC (rev 1183)
@@ -1,3 +1,7 @@
+2006-10-23  Marcus Brinkmann  <marcus at g10code.de>
+
+	* keylist.c (gpgme_op_keylist_next): Return error if OPD is NULL.
+
 2006-09-25  Marcus Brinkmann  <marcus at g10code.de>
 
 	* data-mem.c (gpgme_data_release_and_get_mem): Release the data

Modified: trunk/gpgme/keylist.c
===================================================================
--- trunk/gpgme/keylist.c	2006-09-25 14:57:00 UTC (rev 1182)
+++ trunk/gpgme/keylist.c	2006-10-23 17:17:25 UTC (rev 1183)
@@ -883,6 +883,8 @@
   opd = hook;
   if (err)
     return err;
+  if (opd == NULL)
+    return gpg_error (GPG_ERR_INV_VALUE);
 
   if (!opd->key_queue)
     {




More information about the Gnupg-commits mailing list