diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2001-10-19 08:30:36 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2001-10-19 08:30:36 +0800 |
commit | ae6f93814ac620833fe9e7c7684b51a1ef01ea11 (patch) | |
tree | 35880eb4f5982087c7a258871e8c7f1de247ef29 /camel/camel-pgp-context.c | |
parent | 18dab3abfde272dbf6d6010ae3378cf08c09f390 (diff) | |
download | gsoc2013-evolution-ae6f93814ac620833fe9e7c7684b51a1ef01ea11.tar.gz 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
Diffstat (limited to 'camel/camel-pgp-context.c')
-rw-r--r-- | camel/camel-pgp-context.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |