diff options
author | julien.pierre.bugs%sun.com <devnull@localhost> | 2004-10-23 20:11:05 +0000 |
---|---|---|
committer | julien.pierre.bugs%sun.com <devnull@localhost> | 2004-10-23 20:11:05 +0000 |
commit | a794a5b98c363ea0d493c499e86b02f65d93d685 (patch) | |
tree | e55deeec1af638f8335a0d9c49e5e0909687f397 | |
parent | f6b8757bf585d7e7aeca8279991c93e7a4cff8a4 (diff) | |
download | nspr-hg-a794a5b98c363ea0d493c499e86b02f65d93d685.tar.gz |
Fix for 265709 - suspicious cast in prnetdb on Solaris . r=wtcSECURITY_3_9_4_RC1NSPR_4_5_1_RTM
-rw-r--r-- | pr/src/misc/prnetdb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pr/src/misc/prnetdb.c b/pr/src/misc/prnetdb.c index b26b7539..6baef4a4 100644 --- a/pr/src/misc/prnetdb.c +++ b/pr/src/misc/prnetdb.c @@ -2128,11 +2128,11 @@ PR_IMPLEMENT(void *) PR_EnumerateAddrInfo(void *iterPtr, #if defined(_PR_INET6_PROBE) if (!_pr_ipv6_is_present) { /* using PRAddrInfoFB */ - PRIntn iter = (PRIntn) iterPtr; + PRIntn iter = (PRIntn) (PRPtrdiff) iterPtr; iter = PR_EnumerateHostEnt(iter, &((PRAddrInfoFB *) base)->hostent, port, result); if (iter < 0) iter = 0; - return (void *) iter; + return (void *) (PRPtrdiff) iter; } #endif |