projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add timeouts to 'tinc join'
[tinc]
/
src
/
protocol_edge.c
diff --git
a/src/protocol_edge.c
b/src/protocol_edge.c
index
7569e23
..
d1a2d02
100644
(file)
--- a/
src/protocol_edge.c
+++ b/
src/protocol_edge.c
@@
-111,14
+111,12
@@
bool add_edge_h(connection_t *c, const char *request) {
}
if(!from) {
- from = new_node();
- from->name = xstrdup(from_name);
+ from = new_node(from_name);
node_add(from);
}
if(!to) {
- to = new_node();
- to->name = xstrdup(to_name);
+ to = new_node(to_name);
node_add(to);
}