]> git.meshlink.io Git - meshlink/commitdiff
Remove superfluous call to avl_delete().
authorGuus Sliepen <guus@tinc-vpn.org>
Sun, 13 Sep 2009 12:07:40 +0000 (14:07 +0200)
committerGuus Sliepen <guus@tinc-vpn.org>
Sun, 13 Sep 2009 12:07:40 +0000 (14:07 +0200)
src/node.c

index 0c9033ca0fb0c4516f9878c64d09b2196f621602..4fbec08fabcb8e1a18e8588f089661b3832f5a01 100644 (file)
@@ -174,7 +174,6 @@ void update_node_udp(node_t *n, const sockaddr_t *sa)
        if(sa) {
                n->address = *sa;
                n->hostname = sockaddr2hostname(&n->address);
-               avl_delete(node_udp_tree, n);
                avl_insert(node_udp_tree, n);
                ifdebug(PROTOCOL) logger(LOG_DEBUG, "UDP address of %s set to %s", n->name, n->hostname);
        } else {