X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fprotocol_edge.c;h=524566f0d927d4528ac5e9d4f17d92992ad5a647;hb=3a149f7521dfff67e6a790c1a830afc649ae083e;hp=daceb2e06c217d1087751325334200cf3bee28ce;hpb=1545909dcb3ac618754486f4ccd4d8f237d64bb7;p=tinc diff --git a/src/protocol_edge.c b/src/protocol_edge.c index daceb2e0..524566f0 100644 --- a/src/protocol_edge.c +++ b/src/protocol_edge.c @@ -177,9 +177,9 @@ bool add_edge_h(connection_t *c, const char *request) { } if(e->weight != weight) { - splay_node_t *node = splay_unlink(edge_weight_tree, e); + splay_node_t *node = splay_unlink(&edge_weight_tree, e); e->weight = weight; - splay_insert_node(edge_weight_tree, node); + splay_insert_node(&edge_weight_tree, node); } } else if(from == myself) { logger(DEBUG_PROTOCOL, LOG_WARNING, "Got %s from %s (%s) for ourself which does not exist",