From 7fd452d554bef1ce25a60f14d9a49760e637c357 Mon Sep 17 00:00:00 2001 From: "wtc%netscape.com" Date: Sun, 3 Jun 2001 04:18:40 +0000 Subject: [PATCH] Bugzilla bug #83845: the IPv6-to-IPv4 getpeername method was invoking the getsockname method of the IPv4 socket layer. Thanks to Terry Hayes for the bug fix. --- nsprpub/pr/src/io/pripv6.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nsprpub/pr/src/io/pripv6.c b/nsprpub/pr/src/io/pripv6.c index e000c29aa2a..fd104677e06 100644 --- a/nsprpub/pr/src/io/pripv6.c +++ b/nsprpub/pr/src/io/pripv6.c @@ -250,7 +250,7 @@ static PRStatus PR_CALLBACK Ipv6ToIpv4SocketGetPeerName(PRFileDesc *fd, PRStatus result; PRNetAddr tmp_ipv4addr; - result = (fd->lower->methods->getsockname)(fd->lower, &tmp_ipv4addr); + result = (fd->lower->methods->getpeername)(fd->lower, &tmp_ipv4addr); if (PR_SUCCESS == result) { _PR_ConvertToIpv6NetAddr(&tmp_ipv4addr, ipv6addr); PR_ASSERT(IsValidNetAddr(ipv6addr) == PR_TRUE);