cvs commit: src/sys/netipx spx_usrreq.c
Robert Watson
rwatson at FreeBSD.org
Fri Feb 25 13:37:38 GMT 2005
rwatson 2005-02-25 13:37:38 UTC
FreeBSD src repository
Modified files: (Branch: RELENG_5)
sys/netipx spx_usrreq.c
Log:
Merge spx_usrreq.c:1.60 from HEAD to RELENG_5:
Clean up return handling for a number of SPX-related routines that
were derived from more complex TCP versions of the same:
- spx_close(), spx_disconnect(), spx_drop(), and spx_usrclosed() all
always free's the spxpcb invalidating the argument, so a return
value is not required to indicate if it has.
- Annotate that the cb arguments to each of these functions is
invalidated via a comment.
- When tearing down a pcb due to sonewconn() having failed, mark the
cb as NULL; later, when deciding whether to store trace information
due to SO_DEBUG, check that cb is not NULL before dereferencing or
a NULL pointer dereference may occur.
Revision Changes Path
1.46.2.12 +28 -21 src/sys/netipx/spx_usrreq.c
More information about the cvs-src
mailing list