the ctdb structure must make its own copy of the ->address field and not just
authorRonnie Sahlberg <sahlberg@samba.org>
Tue, 19 Feb 2008 03:35:15 +0000 (14:35 +1100)
committerRonnie Sahlberg <sahlberg@samba.org>
Tue, 19 Feb 2008 03:35:15 +0000 (14:35 +1100)
commit644a7248548260d37df432979b129797750907f4
tree31a7129cde37cbf1da2b8aaf8642dd52474bdc31
parent792d5471ff0c2947b6e66183925860de27f30eaf
the ctdb structure must make its own copy of the ->address field and not just
copy the content of the nodes structure.

this ctdb_address structure contains a pointer which is talloced hanging off the structure itself.
If we copy the content of this structure as we did in assigning to ctdb->address from nodes[i]
then if we talloc_free() the node structure we end up with a wild pointer in ctdb->address
tcp/tcp_connect.c