summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2014-02-19 23:02:24 +0000
committerChristian Pointner <equinox@anytun.org>2014-02-19 23:02:24 +0000
commitb658bf6d9e91dad82d52add72ba998b1e65bb8ea (patch)
tree19b9996c868599bd0a09a8dd753e7a4e353d34ca
parentalso resetting seq_nr on HUP signal (diff)
fixed remote end auto detection
-rw-r--r--src/udp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/udp.c b/src/udp.c
index a556923..f336c6e 100644
--- a/src/udp.c
+++ b/src/udp.c
@@ -318,7 +318,7 @@ void udp_update_remote(udp_t* sock, int fd, udp_endpoint_t* remote)
if(!sock)
return;
- if(!(sock->active_sock_) || sock->active_sock_->fd_ == fd) {
+ if(!(sock->active_sock_) || sock->active_sock_->fd_ != fd) {
udp_socket_t* s = sock->socks_;
while(s) {
if(s->fd_ == fd) {