Closed
Bug 84100
Opened 23 years ago
Closed 23 years ago
The nblayer.c test needs to override the accept I/O method.
Categories
(NSPR :: NSPR, defect, P1)
Tracking
(Not tracked)
RESOLVED
FIXED
4.1.2
People
(Reporter: wtc, Assigned: wtc)
Details
Attachments
(1 file)
2.07 KB,
patch
|
Details | Diff | Splinter Review |
The I/O layer in the nblayer.c test has a PRFilePrivate structure that needs to be duplicated for an accepted socket. The default accept method does not do that. It only copies the PRFileDesc structure, resulting in the 'secret' field of an accepted socket pointing to the PRFilePrivate structure of the listening socket. When we close the accepted socket and the listening socket, we free the PRFilePrivate structure twice. We need to write our own accept method that copies not only the PRFileDesc structure but also makes a copy of the PRFilePrivate structure for an accept socket.
Assignee | ||
Comment 1•23 years ago
|
||
Assignee | ||
Updated•23 years ago
|
Status: NEW → RESOLVED
Closed: 23 years ago
Priority: -- → P1
Resolution: --- → FIXED
Target Milestone: --- → 4.2
Assignee | ||
Comment 2•23 years ago
|
||
I checked in my fix on the trunk of NSPR.
Assignee | ||
Comment 3•23 years ago
|
||
I merged this fix on the NSPRPUB_RELEASE_4_1_BRANCH to help the testing of NSPR 4.1.2.
Target Milestone: 4.2 → 4.1.2
You need to log in
before you can comment on or make changes to this bug.
Description
•