summaryrefslogtreecommitdiff
blob: addfd9a0047c38abcd03e3036a2089f753d4f9f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- a/sockets.c
+++ b/sockets.c
@@ -188,7 +188,7 @@
 	return -1;
     }
     if (ipbuf)
-	memcpy(retbuf, &sa.sin_addr, 4);
+	memcpy(ipbuf, &sa.sin_addr, 4);
 #endif
 
     return sock;