Another attempt to close the hole causing crashes when CC==NULL
authorDave West <davew@uncensored.citadel.org>
Sun, 31 Jan 2010 17:15:06 +0000 (17:15 +0000)
committerDave West <davew@uncensored.citadel.org>
Sun, 31 Jan 2010 17:15:06 +0000 (17:15 +0000)
citadel/sysdep.c

index d3f13aba5e88fd09fcffa9bb3883905c6bcf880d..83e87f3d9eec069f62c7749085726ff71ce6883f 100644 (file)
@@ -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! */