summaryrefslogtreecommitdiff
path: root/netcon
diff options
context:
space:
mode:
authorJoseph Henry <josephjah@gmail.com>2015-12-09 12:22:08 -0800
committerJoseph Henry <josephjah@gmail.com>2015-12-09 12:22:08 -0800
commit42da36ba81423340460ddcd62517bf6b35a46fa3 (patch)
treef5f4752a1118aa9e6eeb77e818eb32fc79d9c7b3 /netcon
parenta730c86907074ef5f36545debae76dc1d06086b5 (diff)
downloadinfinitytier-42da36ba81423340460ddcd62517bf6b35a46fa3.tar.gz
infinitytier-42da36ba81423340460ddcd62517bf6b35a46fa3.zip
Fixed addrlen assignment in getsockname()
Diffstat (limited to 'netcon')
-rw-r--r--netcon/Intercept.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/netcon/Intercept.c b/netcon/Intercept.c
index 36c9229e..be633086 100644
--- a/netcon/Intercept.c
+++ b/netcon/Intercept.c
@@ -1046,7 +1046,7 @@ int getsockname(GETSOCKNAME_SIG)
memset(addrbuf, '\0', sizeof(struct sockaddr));
read(fdret_sock, &addrbuf, sizeof(struct sockaddr)); // read address from service
memcpy(addr, addrbuf, sizeof(struct sockaddr));
- *addrlen = 16;
+ *addrlen = sizeof(struct sockaddr);
struct sockaddr_in *connaddr;
connaddr = (struct sockaddr_in *) &addr;