зеркало из https://github.com/mozilla/pjs.git
Fix for bug 402669 . Crash in PR_Socket with IPv6 emulation on VMS and WinNT . Patch created by Nelson. r=julien, wtc
This commit is contained in:
Родитель
dd75824470
Коммит
bbb735cff8
|
@ -1329,6 +1329,9 @@ PR_IMPLEMENT(PRFileDesc*) PR_Socket(PRInt32 domain, PRInt32 type, PRInt32 proto)
|
|||
if (fd != NULL) {
|
||||
_PR_MD_MAKE_NONBLOCK(fd);
|
||||
_PR_MD_INIT_FD_INHERITABLE(fd, PR_FALSE);
|
||||
#ifdef _PR_NEED_SECRET_AF
|
||||
fd->secret->af = domain;
|
||||
#endif
|
||||
#if defined(_PR_INET6_PROBE) || !defined(_PR_INET6)
|
||||
/*
|
||||
* For platforms with no support for IPv6
|
||||
|
@ -1340,9 +1343,6 @@ PR_IMPLEMENT(PRFileDesc*) PR_Socket(PRInt32 domain, PRInt32 type, PRInt32 proto)
|
|||
fd = NULL;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
#ifdef _PR_NEED_SECRET_AF
|
||||
fd->secret->af = domain;
|
||||
#endif
|
||||
} else
|
||||
_PR_MD_CLOSE_SOCKET(osfd);
|
||||
|
|
Загрузка…
Ссылка в новой задаче