summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwtc%netscape.com <devnull@localhost>2000-02-04 16:58:48 +0000
committerwtc%netscape.com <devnull@localhost>2000-02-04 16:58:48 +0000
commita919534abd3c4ecdce4c3a4d966288ac27630a34 (patch)
treea73c2776ff58433048d6d1636c1ceb0f02a14dba
parent0e170f0380d3ff2ceaa1302f24feff760ddd3a22 (diff)
downloadnspr-hg-a919534abd3c4ecdce4c3a4d966288ac27630a34.tar.gz
Bugzilla bug #23815: when pt_Accept does the PR_AF_INET6 to AF_INET6
mapping, it needs to check for a NULL addr. (NSPRPUB_RELEASE_4_0_BRANCH)
-rw-r--r--pr/src/pthreads/ptio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pr/src/pthreads/ptio.c b/pr/src/pthreads/ptio.c
index ffbecea0..da4f8c67 100644
--- a/pr/src/pthreads/ptio.c
+++ b/pr/src/pthreads/ptio.c
@@ -1239,7 +1239,7 @@ static PRFileDesc* pt_Accept(
}
#endif /* _PR_HAVE_SOCKADDR_LEN */
#ifdef _PR_INET6
- if (AF_INET6 == addr->raw.family)
+ if (addr && (AF_INET6 == addr->raw.family))
addr->raw.family = PR_AF_INET6;
#endif
newfd = pt_SetMethods(osfd, PR_DESC_SOCKET_TCP, PR_TRUE);