projects
/
tinc
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ab13c14
)
Fix the previous commit.
author
Guus Sliepen
<guus@tinc-vpn.org>
Sun, 5 Jun 2016 13:20:57 +0000
(15:20 +0200)
committer
Guus Sliepen
<guus@tinc-vpn.org>
Sun, 5 Jun 2016 13:20:57 +0000
(15:20 +0200)
src/protocol_auth.c
patch
|
blob
|
history
diff --git
a/src/protocol_auth.c
b/src/protocol_auth.c
index
65c5e89
..
31b1f1e
100644
(file)
--- a/
src/protocol_auth.c
+++ b/
src/protocol_auth.c
@@
-866,7
+866,8
@@
bool ack_h(connection_t *c, const char *request) {
c->edge = new_edge();
c->edge->from = myself;
c->edge->to = n;
- sockaddr_setport(&c->address, hisport);
+ sockaddrcpy(&c->edge->address, &c->address);
+ sockaddr_setport(&c->edge->address, hisport);
sockaddr_t local_sa;
socklen_t local_salen = sizeof local_sa;
if (getsockname(c->socket, &local_sa.sa, &local_salen) < 0)