diff options
author | Christian Pointner <equinox@anytun.org> | 2014-02-09 22:37:30 +0000 |
---|---|---|
committer | Christian Pointner <equinox@anytun.org> | 2014-02-09 22:37:30 +0000 |
commit | e70221552923e9708acecd40fa31c72d92a95f19 (patch) | |
tree | 5b6d5b8bfd4f73d3ce01f4309900f33d1c2e8db6 /src | |
parent | added clang support (diff) |
fixed errnous copy of remote end
Diffstat (limited to 'src')
-rw-r--r-- | src/uanytun.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/uanytun.c b/src/uanytun.c index d804d05..29fa17d 100644 --- a/src/uanytun.c +++ b/src/uanytun.c @@ -185,6 +185,7 @@ int process_sock_data(tun_device_t* dev, int fd, udp_t* sock, options_t* opt, pl udp_set_active_sock(sock, fd); if(remote.len_ != sock->remote_end_.len_ || memcmp(&(remote.addr_), &(sock->remote_end_.addr_), remote.len_)) { memcpy(&(sock->remote_end_.addr_), &(remote.addr_), remote.len_); + sock->remote_end_.len_ = remote.len_; sock->remote_end_set_ = 1; char* addrstring = udp_endpoint_to_string(remote); log_printf(NOTICE, "autodetected remote host changed %s", addrstring); |