[svn] gpgme - r1373 - trunk/src

svn author wk cvs at cvs.gnupg.org
Tue Jun 9 20:59:45 CEST 2009


Author: wk
Date: 2009-06-09 20:59:45 +0200 (Tue, 09 Jun 2009)
New Revision: 1373

Modified:
   trunk/src/ChangeLog
   trunk/src/engine-gpg.c
Log:
Fix possible assert in the card edit.


Modified: trunk/src/ChangeLog
===================================================================
--- trunk/src/ChangeLog	2009-06-09 16:01:02 UTC (rev 1372)
+++ trunk/src/ChangeLog	2009-06-09 18:59:45 UTC (rev 1373)
@@ -1,5 +1,7 @@
 2009-06-09  Werner Koch  <wk at g10code.com>
 
+	* engine-gpg.c (gpg_io_event): Test for cmd.fd.
+
 	* version.c (gpgme_check_version_internal): Make result const.
 
 	* gpgme.c: Include priv-io.h.

Modified: trunk/src/engine-gpg.c
===================================================================
--- trunk/src/engine-gpg.c	2009-06-09 16:01:02 UTC (rev 1372)
+++ trunk/src/engine-gpg.c	2009-06-09 18:59:45 UTC (rev 1373)
@@ -171,6 +171,8 @@
     }
   else if (gpg->colon.fd[1] == fd)
     gpg->colon.fd[1] = -1;
+  else if (gpg->cmd.fd == fd)
+    gpg->cmd.fd = -1;
   else if (gpg->fd_data_map)
     {
       int i;




More information about the Gnupg-commits mailing list