summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorFabio Alessandrelli <fabio.alessandrelli@gmail.com>2016-12-02 04:10:55 +0100
committerFabio Alessandrelli <fabio.alessandrelli@gmail.com>2016-12-09 18:24:58 +0100
commitcdc1ca0f1301bb907121292db83f98706722ff1e (patch)
tree93cc1eb58e7a303121a3f0909b18ff052256197d /drivers
parentc3886e89cb399ec828d1cf646f983da9b92a3f8a (diff)
Fix _set_ip_addr_port not setting the address.
Diffstat (limited to 'drivers')
-rw-r--r--drivers/unix/socket_helpers.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/unix/socket_helpers.h b/drivers/unix/socket_helpers.h
index 5e8e8dfd7a..84b1ca5740 100644
--- a/drivers/unix/socket_helpers.h
+++ b/drivers/unix/socket_helpers.h
@@ -92,7 +92,7 @@ static void _set_ip_addr_port(IP_Address& r_ip, int& r_port, struct sockaddr_sto
r_ip.type = IP_Address::TYPE_IPV6;
struct sockaddr_in6* addr6 = (struct sockaddr_in6*)p_addr;
- copymem(&addr6->sin6_addr.s6_addr, r_ip.field8, 16);
+ copymem(&r_ip.field8, addr6->sin6_addr.s6_addr, 16);
r_port = ntohs(addr6->sin6_port);
};