Rev 666: another place where we need to mark connect_fde as freed in http://samba.org/~tridge/ctdb

tridge at samba.org tridge at samba.org
Mon Oct 22 05:13:33 GMT 2007


------------------------------------------------------------
revno: 666
revision-id: tridge at samba.org-20071022051332-08d6bfu5donk4cg5
parent: tridge at samba.org-20071022051308-c87pdg4p1tybjyts
committer: Andrew Tridgell <tridge at samba.org>
branch nick: tridge
timestamp: Mon 2007-10-22 15:13:32 +1000
message:
  another place where we need to mark connect_fde as freed
modified:
  tcp/tcp_connect.c              tcp_connect.c-20061128004937-x70q1cu5xzg5g2tm-1
=== modified file 'tcp/tcp_connect.c'
--- a/tcp/tcp_connect.c	2007-10-22 04:07:35 +0000
+++ b/tcp/tcp_connect.c	2007-10-22 05:13:32 +0000
@@ -66,7 +66,8 @@
 
 	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), 



More information about the samba-cvs mailing list