Fix bug #402503: transport_send_line crash
authorJoe Bormolini <j.bormolini@gmail.com>
Tue, 10 Aug 2010 15:41:32 +0000 (08:41 -0700)
committerJoe Bormolini <j.bormolini@gmail.com>
Tue, 10 Aug 2010 15:41:32 +0000 (08:41 -0700)
libirc/connection.c:close_server() called free_irc_transport() and did not set
transport to NULL after

libirc/connection.c

index 6f69399..f6dbc1f 100644 (file)
@@ -626,6 +626,7 @@ static gboolean close_server(struct irc_network *n)
                }
                free_tcp_names(n);
                free_irc_transport(n->connection.transport);
+               n->connection.transport = NULL;
                break;
        case NETWORK_VIRTUAL:
                if (n->connection.data.virtual.ops &&