Closed Bug 823100 Opened 12 years ago Closed 11 years ago

ssl_NewSocket should init ephemeralECDHKeyPair to NULL

Categories

(NSS :: Libraries, defect)

3.14.2
x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: KaiE, Unassigned)

Details

Attachments

(1 file)

ssl_NewSocket inits most members, but doesn't init ephemeralECDHKeyPair.
It should init it to NULL.
Attached patch patch v1Splinter Review
Attachment #693925 - Flags: review?(ryan.sleevi)
Comment on attachment 693925 [details] [diff] [review]
patch v1

Review of attachment 693925 [details] [diff] [review]:
-----------------------------------------------------------------

We haven't run into this being an issue in practice, due to the PORT_ZAlloc() call, but I agree that making this change makes it clear and is consistent with the rest of the initialization code in ssl_NewSocket.
Attachment #693925 - Flags: review?(ryan.sleevi) → review+
Keywords: checkin-needed
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: 3.14.4 → 3.15
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: