]> Zhao Yanbai Git Server - minix.git/commitdiff
getsockname() reported local port and remote address - changed to local address.
authorBen Gras <ben@minix3.org>
Mon, 27 Mar 2006 11:07:06 +0000 (11:07 +0000)
committerBen Gras <ben@minix3.org>
Mon, 27 Mar 2006 11:07:06 +0000 (11:07 +0000)
lib/ip/getsockname.c

index 9bffe0e646763051ae73276ef76e7e671c37748c..5928e6399c8825429ca584b5036e804518a7a045 100644 (file)
@@ -58,7 +58,7 @@ int getsockname(int fd, struct sockaddr *_RESTRICT address,
 */
        memset(&sin, '\0', sizeof(sin));
        sin.sin_family= AF_INET;
-       sin.sin_addr.s_addr= tcpconf.nwtc_remaddr ;
+       sin.sin_addr.s_addr= tcpconf.nwtc_locaddr ;
        sin.sin_port= tcpconf.nwtc_locport;
 
        len= *address_len;