зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
556c0e9647
Коммит
7fd452d554
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче