X-Git-Url: https://www.tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fgraph.c;h=6ec3724e8d6c59fa2a656cc4c28fb88d97a58790;hb=ffb55e6904426a31c03b56c3bd87bb60db0624c6;hp=e57ffe50aa5d467eab53303ca4f26942793436d6;hpb=eefa28059ab989c915a7d95fb4ae728abd7ce713;p=tinc diff --git a/src/graph.c b/src/graph.c index e57ffe50..6ec3724e 100644 --- a/src/graph.c +++ b/src/graph.c @@ -17,7 +17,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - $Id: graph.c,v 1.1.2.27 2003/07/22 20:55:19 guus Exp $ + $Id: graph.c,v 1.1.2.28 2003/08/22 11:18:42 guus Exp $ */ /* We need to generate two trees from the graph: @@ -220,7 +220,8 @@ void sssp_bfs(void) if(sockaddrcmp(&e->to->address, &e->address)) { node = avl_unlink(node_udp_tree, e->to); - e->to->address = e->address; + sockaddrfree(&e->to->address); + sockaddrcpy(&e->to->address, &e->address); if(e->to->hostname) free(e->to->hostname);