From bcc9fbd92fcbbc769477eaab19289bdcd66356cd Mon Sep 17 00:00:00 2001 From: Dave West Date: Sun, 31 Jan 2010 17:15:06 +0000 Subject: [PATCH] Another attempt to close the hole causing crashes when CC==NULL --- citadel/sysdep.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/citadel/sysdep.c b/citadel/sysdep.c index d3f13aba5..83e87f3d9 100644 --- a/citadel/sysdep.c +++ b/citadel/sysdep.c @@ -992,7 +992,7 @@ do_select: force_purge = 0; begin_critical_section(S_SESSION_TABLE); for (ptr = ContextList; ptr != NULL; ptr = ptr->next) { if ( (FD_ISSET(ptr->client_socket, &readfds)) - && (ptr->state != CON_EXECUTING) ) { + && (ptr->state == CON_IDLE) ) { ptr->input_waiting = 1; if (!bind_me) { bind_me = ptr; /* I choose you! */ -- 2.39.2