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
This commit is contained in:

committed by
Jeffrey Stedfast

parent
18dab3abfd
commit
ae6f93814a
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user