summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjulien.pierre.boogz%sun.com <devnull@localhost>2007-11-07 02:34:30 +0000
committerjulien.pierre.boogz%sun.com <devnull@localhost>2007-11-07 02:34:30 +0000
commit06583930b747dec5a7a1e0897f36d3cf6ee99d67 (patch)
treec3b2611609e099df090783fbeab639b21515688d
parentc3114c19b9bbbd33fc9d273ede1e23f0f478a9d8 (diff)
downloadnspr-hg-06583930b747dec5a7a1e0897f36d3cf6ee99d67.tar.gz
Fix for bug 402669 . Crash in PR_Socket with IPv6 emulation on VMS and WinNT . Patch created by Nelson. r=julien, wtc
-rw-r--r--pr/src/io/prsocket.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/pr/src/io/prsocket.c b/pr/src/io/prsocket.c
index 935df381..0d38b007 100644
--- a/pr/src/io/prsocket.c
+++ b/pr/src/io/prsocket.c
@@ -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
@@ -1341,9 +1344,6 @@ PR_IMPLEMENT(PRFileDesc*) PR_Socket(PRInt32 domain, PRInt32 type, PRInt32 proto)
}
}
#endif
-#ifdef _PR_NEED_SECRET_AF
- fd->secret->af = domain;
-#endif
} else
_PR_MD_CLOSE_SOCKET(osfd);