diff options
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; } |