Rev 664: prevent a double free in http://samba.org/~tridge/ctdb

tridge at samba.org tridge at samba.org
Mon Oct 22 04:07:35 GMT 2007


------------------------------------------------------------
revno: 664
revision-id: tridge at samba.org-20071022040735-gwtj9ginexwi7fcb
parent: tridge at samba.org-20071022002625-gyl2j3dht6pwyl26
committer: Andrew Tridgell <tridge at samba.org>
branch nick: tridge
timestamp: Mon 2007-10-22 14:07:35 +1000
message:
  prevent a double free
modified:
  tcp/tcp_connect.c              tcp_connect.c-20061128004937-x70q1cu5xzg5g2tm-1
=== modified file 'tcp/tcp_connect.c'
--- a/tcp/tcp_connect.c	2007-09-04 00:06:36 +0000
+++ b/tcp/tcp_connect.c	2007-10-22 04:07:35 +0000
@@ -74,7 +74,8 @@
 		return;
 	}
 
-	talloc_free(fde);
+	talloc_free(tnode->connect_fde);
+	tnode->connect_fde = NULL;
 	
         setsockopt(tnode->fd,IPPROTO_TCP,TCP_NODELAY,(char *)&one,sizeof(one));
         setsockopt(tnode->fd,SOL_SOCKET,SO_KEEPALIVE,(char *)&one,sizeof(one));



More information about the samba-cvs mailing list