diff options
author | Andrew Tridgell <tridge@samba.org> | 2007-10-22 15:13:32 +1000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2007-10-22 15:13:32 +1000 |
commit | 2d8afd85d5b851f979169aac1d9e9a590246d785 (patch) | |
tree | fd37f5c9c722d80cd9c421d527ce95771d7762f3 /ctdb/tcp | |
parent | 2931ed5d1758035d19fc1d58af5f96ba1105957c (diff) | |
download | samba-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.c | 3 |
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), |