Closed Bug 1162644 Opened 9 years ago Closed 9 years ago

Call PORT_SetError after calling SSL3_SendAlert

Categories

(NSS :: Libraries, defect, P2)

3.19
defect

Tracking

(Not tracked)

RESOLVED FIXED
3.19.1

People

(Reporter: wtc, Assigned: wtc)

Details

Attachments

(1 file)

Attached patch Proposed patchSplinter Review
The proposed patch changes ssl3ext.c to call PORT_SetError
after the SSL3_SendAlert calls. This is a pattern we follow
when convenient. The reason is that any function we call
after PORT_SetError may potentially change the error code,
even if the function succeeds. NSS functions, like most
other library functions, only guarantee the error code is
correctly set if they fail.

(The SSL3_SendAlert calls I modified seem to be newly
added in bug 753136.)
Attachment #8602861 - Flags: review?(martin.thomson)
Attachment #8602861 - Flags: review?(martin.thomson) → review+
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: