From 4a16c2c8834c0460e7ee7beaddea56b3a9896815 Mon Sep 17 00:00:00 2001 From: Randall Stewart Date: Wed, 27 Aug 2008 13:13:35 +0000 Subject: [PATCH] - 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 --- sys/netinet/sctp_pcb.c | 1 + 1 file changed, 1 insertion(+) 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; } }