]> git.meshlink.io Git - meshlink/blobdiff - src/node.c
Merge branch 'master' of git://tinc-vpn.org/tinc into 1.1
[meshlink] / src / node.c
index 862bd69693ca9707e2ebd01076806e0e1bec43cf..9281178b582351057d69d7827b11e57cb3e608ff 100644 (file)
@@ -1,6 +1,6 @@
 /*
     node.c -- node tree management
-    Copyright (C) 2001-2009 Guus Sliepen <guus@tinc-vpn.org>,
+    Copyright (C) 2001-2011 Guus Sliepen <guus@tinc-vpn.org>,
                   2001-2005 Ivo Timmermans
 
     This program is free software; you can redistribute it and/or modify
@@ -142,6 +142,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;
+       }
+
        splay_delete(node_udp_tree, n);
 
        if(n->hostname)