diff options
author | Randall Stewart <rrs@FreeBSD.org> | 2008-08-27 13:13:35 +0000 |
---|---|---|
committer | Randall Stewart <rrs@FreeBSD.org> | 2008-08-27 13:13:35 +0000 |
commit | 4a16c2c8834c0460e7ee7beaddea56b3a9896815 (patch) | |
tree | e9825bacec5fdba71c35492c39f16d7c1bd46303 /sys/netinet | |
parent | b3c9746474d50306b321315667d4a0a40a3fccd8 (diff) | |
download | src-4a16c2c8834c0460e7ee7beaddea56b3a9896815.tar.gz src-4a16c2c8834c0460e7ee7beaddea56b3a9896815.zip |
- When we close a socket with pending assoc's that are still
shutting down, NULL out the socket pointer so we won't
ever refer to a dead socket.
Obtained from: Neil Wilson
Notes
Notes:
svn path=/head/; revision=182268
Diffstat (limited to 'sys/netinet')
-rw-r--r-- | sys/netinet/sctp_pcb.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/netinet/sctp_pcb.c b/sys/netinet/sctp_pcb.c index ceca8bd116de..5e4cc731c25d 100644 --- a/sys/netinet/sctp_pcb.c +++ b/sys/netinet/sctp_pcb.c @@ -3275,6 +3275,7 @@ sctp_inpcb_free(struct sctp_inpcb *inp, int immediate, int from) #ifdef SCTP_LOG_CLOSING sctp_log_closing(inp, NULL, 2); #endif + inp->sctp_socket = NULL; return; } } |