From: Guus Sliepen Date: Sun, 28 Feb 2016 15:28:28 +0000 (+0100) Subject: Fix forwarding of edge updates. X-Git-Tag: release-1.1pre12~63 X-Git-Url: https://git.tinc-vpn.org/git/browse?a=commitdiff_plain;h=4d7469e0da6652bddc8acde499068db4b41b646d;p=tinc Fix forwarding of edge updates. Commit e4670fc accidentily prevented ADD_EDGE messages from propagating in some cases. --- diff --git a/src/protocol_edge.c b/src/protocol_edge.c index 5553f436..a4aaa0c9 100644 --- a/src/protocol_edge.c +++ b/src/protocol_edge.c @@ -153,8 +153,7 @@ bool add_edge_h(connection_t *c, const char *request) { avl_insert_node(edge_weight_tree, node); } - graph(); - return true; + goto done; } } else if(sockaddrcmp(&e->local_address, &local_address)) { if(from == myself) { @@ -212,6 +211,7 @@ bool add_edge_h(connection_t *c, const char *request) { e->weight = weight; edge_add(e); +done: /* Tell the rest about the new edge */ if(!tunnelserver)