mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-25 03:49:42 +00:00
Bugzilla bug #83845: the IPv6-to-IPv4 getpeername method was invoking
the getsockname method of the IPv4 socket layer. Thanks to Terry Hayes <thayes@netscape.com> for the bug fix.
This commit is contained in:
parent
3880e4f617
commit
3785d97929
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user