aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-10-19 08:30:36 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-10-19 08:30:36 +0800
commitae6f93814ac620833fe9e7c7684b51a1ef01ea11 (patch)
tree35880eb4f5982087c7a258871e8c7f1de247ef29
parent18dab3abfde272dbf6d6010ae3378cf08c09f390 (diff)
downloadgsoc2013-evolution-ae6f93814ac620833fe9e7c7684b51a1ef01ea11.tar
gsoc2013-evolution-ae6f93814ac620833fe9e7c7684b51a1ef01ea11.tar.gz
gsoc2013-evolution-ae6f93814ac620833fe9e7c7684b51a1ef01ea11.tar.bz2
gsoc2013-evolution-ae6f93814ac620833fe9e7c7684b51a1ef01ea11.tar.lz
gsoc2013-evolution-ae6f93814ac620833fe9e7c7684b51a1ef01ea11.tar.xz
gsoc2013-evolution-ae6f93814ac620833fe9e7c7684b51a1ef01ea11.tar.zst
gsoc2013-evolution-ae6f93814ac620833fe9e7c7684b51a1ef01ea11.zip
Make sure the cancel_fd isn't -1.
2001-10-18 Jeffrey Stedfast <fejj@ximian.com> * camel-pgp-context.c (crypto_exec_with_passwd): Make sure the cancel_fd isn't -1. svn path=/trunk/; revision=13781
-rw-r--r--camel/ChangeLog5
-rw-r--r--camel/camel-pgp-context.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog
index f6ed0d6133..0c2660c426 100644
--- a/camel/ChangeLog
+++ b/camel/ChangeLog
@@ -1,5 +1,10 @@
2001-10-18 Jeffrey Stedfast <fejj@ximian.com>
+ * camel-pgp-context.c (crypto_exec_with_passwd): Make sure the
+ cancel_fd isn't -1.
+
+2001-10-18 Jeffrey Stedfast <fejj@ximian.com>
+
* providers/imap/camel-imap-message-cache.c (insert_finish): Flush
the stream here, not sure it really matters but it might
(hopefully) fix bug #12943.
diff --git a/camel/camel-pgp-context.c b/camel/camel-pgp-context.c
index 5f159999a6..79a53fd633 100644
--- a/camel/camel-pgp-context.c
+++ b/camel/camel-pgp-context.c
@@ -411,7 +411,7 @@ crypto_exec_with_passwd (const char *path, char *argv[], const char *input, int
select_result = select (max + 1, &fdset, &write_fdset,
NULL, &timeout);
- if (FD_ISSET (cancel_fd, &fdset)) {
+ if (cancel_fd != -1 && FD_ISSET (cancel_fd, &fdset)) {
/* user-cancelled */
break;
}