summaryrefslogtreecommitdiffstats
path: root/ctdb/tcp
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2007-10-22 15:13:32 +1000
committerAndrew Tridgell <tridge@samba.org>2007-10-22 15:13:32 +1000
commit2d8afd85d5b851f979169aac1d9e9a590246d785 (patch)
treefd37f5c9c722d80cd9c421d527ce95771d7762f3 /ctdb/tcp
parent2931ed5d1758035d19fc1d58af5f96ba1105957c (diff)
downloadsamba-2d8afd85d5b851f979169aac1d9e9a590246d785.tar.gz
samba-2d8afd85d5b851f979169aac1d9e9a590246d785.tar.xz
samba-2d8afd85d5b851f979169aac1d9e9a590246d785.zip
another place where we need to mark connect_fde as freed
(This used to be ctdb commit d047fbeafebe4b150602f9a91802795659058b16)
Diffstat (limited to 'ctdb/tcp')
-rw-r--r--ctdb/tcp/tcp_connect.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ctdb/tcp/tcp_connect.c b/ctdb/tcp/tcp_connect.c
index 1b3e7df28e..ad9ce954ff 100644
--- a/ctdb/tcp/tcp_connect.c
+++ b/ctdb/tcp/tcp_connect.c
@@ -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),