Always remove a node from the UDP tree before freeing it.
[oweals/tinc.git] / src / node.c
index a4ef78f..f2bb399 100644 (file)
@@ -137,8 +137,8 @@ void node_del(node_t *n)
                edge_del(e);
        }
 
-       avl_delete(node_tree, n);
        avl_delete(node_udp_tree, n);
+       avl_delete(node_tree, n);
 }
 
 node_t *lookup_node(char *name)