Fix possible assert in the card edit.
authorWerner Koch <wk@gnupg.org>
Tue, 9 Jun 2009 18:59:45 +0000 (18:59 +0000)
committerWerner Koch <wk@gnupg.org>
Tue, 9 Jun 2009 18:59:45 +0000 (18:59 +0000)
trunk/src/ChangeLog
trunk/src/engine-gpg.c

index 7f67b02c4bfb98522ecd9486181e947ecdc1506b..3e03da5dcc964952d8866c2ab567bae57960d6a7 100644 (file)
@@ -1,5 +1,7 @@
 2009-06-09  Werner Koch  <wk@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.
index 606b4d7654d0b8681166d35d4f2708aabbad61ff..34bd613d0724a727a8db0a6f276748f26c373f45 100644 (file)
@@ -171,6 +171,8 @@ close_notify_handler (int fd, void *opaque)
     }
   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;