mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 00:01:50 +00:00
BugZilla: 43337. PR_GetPeerName() asserts on NT
This commit is contained in:
parent
031447a319
commit
7ef5b2d49e
@ -2065,8 +2065,8 @@ _PR_MD_GETPEERNAME(PRFileDesc *fd, PRNetAddr *addr, PRUint32 *len)
|
||||
PR_SetError(PR_NOT_CONNECTED_ERROR, 0);
|
||||
return PR_FAILURE;
|
||||
}
|
||||
*len = PR_NETADDR_SIZE(addr);
|
||||
memcpy(addr, &fd->secret->md.peer_addr, *len);
|
||||
*len = PR_NETADDR_SIZE(addr);
|
||||
return PR_SUCCESS;
|
||||
} else {
|
||||
_PR_MD_MAP_GETSOCKOPT_ERROR(WSAGetLastError());
|
||||
|
Loading…
Reference in New Issue
Block a user