another place where we need to mark connect_fde as freed
authorAndrew Tridgell <tridge@samba.org>
Mon, 22 Oct 2007 05:13:32 +0000 (15:13 +1000)
committerAndrew Tridgell <tridge@samba.org>
Mon, 22 Oct 2007 05:13:32 +0000 (15:13 +1000)
tcp/tcp_connect.c

index 1b3e7df28ea55bab8ac408508f3d32ba96165ac9..ad9ce954ffeb60e350a6aeed3d326d1738718760 100644 (file)
@@ -66,7 +66,8 @@ static void ctdb_node_connect_write(struct event_context *ev, struct fd_event *f
 
        if (getsockopt(tnode->fd, SOL_SOCKET, SO_ERROR, &error, &len) != 0 ||
            error != 0) {
-               talloc_free(fde);
+               talloc_free(tnode->connect_fde);
+               tnode->connect_fde = NULL;
                close(tnode->fd);
                tnode->fd = -1;
                event_add_timed(ctdb->ev, tnode, timeval_current_ofs(1, 0),