BugZilla: 43337. PR_GetPeerName() asserts on NT

This commit is contained in:
larryh%netscape.com 2000-06-22 00:39:09 +00:00
parent 031447a319
commit 7ef5b2d49e

View File

@ -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());