From: Ben Gras Date: Mon, 27 Mar 2006 11:07:06 +0000 (+0000) Subject: getsockname() reported local port and remote address - changed to local address. X-Git-Tag: v3.1.2a~121 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/jquery.js?a=commitdiff_plain;h=894fa0520e667600a9354d88302e4edfaf5e164d;p=minix.git getsockname() reported local port and remote address - changed to local address. --- diff --git a/lib/ip/getsockname.c b/lib/ip/getsockname.c index 9bffe0e64..5928e6399 100644 --- a/lib/ip/getsockname.c +++ b/lib/ip/getsockname.c @@ -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;