From 4d70cf8e409f58b42f590c72d2ec2b929cddb924 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Tue, 9 Jun 2009 18:59:45 +0000 Subject: [PATCH] Fix possible assert in the card edit. --- trunk/src/ChangeLog | 2 ++ trunk/src/engine-gpg.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/trunk/src/ChangeLog b/trunk/src/ChangeLog index 7f67b02..3e03da5 100644 --- a/trunk/src/ChangeLog +++ b/trunk/src/ChangeLog @@ -1,5 +1,7 @@ 2009-06-09 Werner Koch + * 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. diff --git a/trunk/src/engine-gpg.c b/trunk/src/engine-gpg.c index 606b4d7..34bd613 100644 --- a/trunk/src/engine-gpg.c +++ b/trunk/src/engine-gpg.c @@ -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; -- 2.26.2