X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fnode.c;h=b00d034be3376d66077e6b43e279cbbcdb698cf8;hb=0aa86d4b8b3010522e6de8842f5bd29004ba3df6;hp=7bcad892753ddaec91beca2793fdff48780dcc31;hpb=5eb0440110f99f0a49838cc00a0686c7a7595663;p=tinc 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)