X-Git-Url: https://tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Fnode.c;h=b00d034be3376d66077e6b43e279cbbcdb698cf8;hp=7bcad892753ddaec91beca2793fdff48780dcc31;hb=7cf68b5e35c002511cc7468967de6a75934cc998;hpb=cdbbbfabea173894bd2fb5f28135a04ddc5e3fd7 diff --git a/src/node.c b/src/node.c index 7bcad892..b00d034b 100644 --- a/src/node.c +++ b/src/node.c @@ -141,6 +141,11 @@ node_t *lookup_node_udp(const sockaddr_t *sa) { } void update_node_udp(node_t *n, const sockaddr_t *sa) { + if(n == myself) { + logger(LOG_WARNING, "Trying to update UDP address of myself!\n"); + return; + } + avl_delete(node_udp_tree, n); if(n->hostname)