From: Guus Sliepen Date: Thu, 20 Jan 2005 15:14:25 +0000 (+0000) Subject: Don't try to add a non-existing node back to the node_udp_tree. X-Git-Tag: import-tinc-1.1~738 X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=6363ed4d9c675b8b9301b694c4e4dd9c892e04e2;p=meshlink Don't try to add a non-existing node back to the node_udp_tree. --- diff --git a/src/graph.c b/src/graph.c index f6ce90de..491a59f6 100644 --- a/src/graph.c +++ b/src/graph.c @@ -226,7 +226,9 @@ void sssp_bfs(void) free(e->to->hostname); e->to->hostname = sockaddr2hostname(&e->to->address); - avl_insert_node(node_udp_tree, node); + + if(node) + avl_insert_node(node_udp_tree, node); if(e->to->options & OPTION_PMTU_DISCOVERY) { e->to->mtuprobes = 0;