projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update THANKS and copyright information.
[tinc]
/
src
/
node.c
diff --git
a/src/node.c
b/src/node.c
index
7bcad89
..
36979ef
100644
(file)
--- a/
src/node.c
+++ b/
src/node.c
@@
-1,6
+1,6
@@
/*
node.c -- node tree management
/*
node.c -- node tree management
- Copyright (C) 2001-20
09
Guus Sliepen <guus@tinc-vpn.org>,
+ Copyright (C) 2001-20
11
Guus Sliepen <guus@tinc-vpn.org>,
2001-2005 Ivo Timmermans
This program is free software; you can redistribute it and/or modify
2001-2005 Ivo Timmermans
This program is free software; you can redistribute it and/or modify
@@
-141,6
+141,11
@@
node_t *lookup_node_udp(const sockaddr_t *sa) {
}
void update_node_udp(node_t *n, 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)
avl_delete(node_udp_tree, n);
if(n->hostname)