projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Prevent anything from updating our own UDP address.
[tinc]
/
src
/
node.c
diff --git
a/src/node.c
b/src/node.c
index
7bcad89
..
b00d034
100644
(file)
--- 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)