gpgme crasher on key enumeration

Werner Koch wk at gnupg.org
Mon Sep 17 13:49:02 CEST 2001


Thanks.

Here is a fix against the new 0.2.3 :

Index: keylist.c
===================================================================
RCS file: /cvs/gnupg/gpgme/gpgme/keylist.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -r1.18 -r1.19
--- keylist.c	2001/09/17 08:25:35	1.18
+++ keylist.c	2001/09/17 10:36:05	1.19
@@ -482,6 +479,8 @@
     }
     q = c->key_queue;
     c->key_queue = q->next;
+    if (!c->key_queue)
+        c->key_cond = 0;
 
     *r_key = q->key;
     xfree (q);


-- 
Werner Koch        Omnis enim res, quae dando non deficit, dum habetur
g10 Code GmbH      et non datur, nondum habetur, quomodo habenda est.
Privacy Solutions                                        -- Augustinus





More information about the Gnupg-devel mailing list