Readd a check that was missed when fixing LM-71.
authorMikael Hallendal <micke@imendio.com>
Mon, 12 Feb 2007 15:35:38 +0000 (16:35 +0100)
committerMikael Hallendal <micke@imendio.com>
Mon, 12 Feb 2007 15:35:38 +0000 (16:35 +0100)
loudmouth/lm-connection.c

index 69e85e8fd677d30f78beb9ec2b6bed70642b3a50..f8f77ea7fee4e50b956abf078800bdccc1015661 100644 (file)
@@ -1134,6 +1134,10 @@ connection_in_event (GIOChannel   *source,
        gsize    bytes_read;
        gboolean hangup;
 
+       if (connection->io_channel == NULL) {
+               return FALSE;
+       }
+
        while (connection_read_incoming (connection, buf, IN_BUFFER_SIZE,
                                         &bytes_read, &hangup)) {
                g_log (LM_LOG_DOMAIN, LM_LOG_LEVEL_NET, "\nRECV [%d]:\n",