aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRandall Stewart <rrs@FreeBSD.org>2008-08-27 13:13:35 +0000
committerRandall Stewart <rrs@FreeBSD.org>2008-08-27 13:13:35 +0000
commit4a16c2c8834c0460e7ee7beaddea56b3a9896815 (patch)
treee9825bacec5fdba71c35492c39f16d7c1bd46303
parentb3c9746474d50306b321315667d4a0a40a3fccd8 (diff)
downloadsrc-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
-rw-r--r--sys/netinet/sctp_pcb.c1
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;
}
}