Closed Bug 390191 Opened 18 years ago Closed 2 years ago

nss_SetError does not set an NSPR error code

Categories

(NSS :: Libraries, defect, P5)

Tracking

(Not tracked)

RESOLVED INACTIVE

People

(Reporter: nelson, Unassigned)

References

(Blocks 1 open bug, )

Details

All "Stan" functions call nss_SetError to set their Stan-style error codes into Stan's error "stack". But nss_SetError never sets the NSPR-style error code. It never calls PORT_SetError or PR_SetError. Consequently, in present NSS programs, whenever a failure occurs in any of the Stan functions, the program reports some NSPR-style error code that is unrelated to the real problem. I propose that nss_SetError should have a table to translate from Stan-style NSS error codes to the older NSPR-style error codes, and that nss_SetError should do that translation and call PORT_SetError with the translated error code.
Severity: normal → S3
Severity: S3 → S4
Status: NEW → RESOLVED
Closed: 2 years ago
Priority: -- → P5
Resolution: --- → INACTIVE
You need to log in before you can comment on or make changes to this bug.