r=gordon. 23709. Adding an extra check before trying to memcpy hostent data, this should fix the crashing we've been seeing on some win95 boxes, but it doesn't fix the problem of not having any A entries in DNS
This commit is contained in:
Родитель
5908d4b13f
Коммит
c8ad60b95f
|
@ -1460,7 +1460,8 @@ nsSocketTransport::OnFound(nsISupports *aContext,
|
|||
nsAutoLock lock(mLock);
|
||||
nsresult rv = NS_OK;
|
||||
|
||||
if (aHostEnt->hostEnt.h_addr_list) {
|
||||
if (aHostEnt->hostEnt.h_addr_list
|
||||
&& aHostEnt->hostEnt.h_addr_list[0]) {
|
||||
memcpy(&mNetAddress.inet.ip, aHostEnt->hostEnt.h_addr_list[0],
|
||||
sizeof(mNetAddress.inet.ip));
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче