git.samba.org
/
ctdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aea9b0c
)
another place where we need to mark connect_fde as freed
author
Andrew Tridgell
<tridge@samba.org>
Mon, 22 Oct 2007 05:13:32 +0000
(15:13 +1000)
committer
Andrew Tridgell
<tridge@samba.org>
Mon, 22 Oct 2007 05:13:32 +0000
(15:13 +1000)
tcp/tcp_connect.c
patch
|
blob
|
history
diff --git
a/tcp/tcp_connect.c
b/tcp/tcp_connect.c
index 1b3e7df28ea55bab8ac408508f3d32ba96165ac9..ad9ce954ffeb60e350a6aeed3d326d1738718760 100644
(file)
--- a/
tcp/tcp_connect.c
+++ b/
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),