Provide a constant equivalent to INET6_ADDRSTRLEN

RESOLVED INACTIVE

Status

NSPR
NSPR
--
enhancement
RESOLVED INACTIVE
11 years ago
3 days ago

People

(Reporter: kaie, Assigned: Wan-Teh Chang)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

11 years ago
Recently I made the same mistake twice, resulting in a red tinderbox.

The constant INET6_ADDRSTRLEN is not defined on Windows.
I require this constant to allocate a buffer of sufficient size for a call to PR_NetAddrToString.

I propose that NSPR defines its own symbol that we can use instead of INET6_ADDRSTRLEN.


Once fixed, we should remove the 
  #ifndef INET6_ADDRSTRLEN
  #define INET6_ADDRSTRLEN 46
  #endif
blocks that are currently being used in 
  mozilla/security/nss/lib/certdb/certdb.c
and
  mozilla/security/manager/ssl/src/nsNSSCertHelper.h
Severity: normal → enhancement
Version: other → 4.6

Comment 1

3 days ago
Per policy at https://wiki.mozilla.org/Bug_Triage/Projects/Bug_Handling/Bug_Husbandry#Inactive_Bugs. If this bug is not an enhancement request or a bug not present in a supported release of Firefox, then it may be reopened.
Status: NEW → RESOLVED
Last Resolved: 3 days ago
Resolution: --- → INACTIVE
You need to log in before you can comment on or make changes to this bug.