aboutsummaryrefslogtreecommitdiff
path: root/sys/netinet/sctp_timer.c
diff options
context:
space:
mode:
authorMichael Tuexen <tuexen@FreeBSD.org>2018-08-21 13:25:32 +0000
committerMichael Tuexen <tuexen@FreeBSD.org>2018-08-21 13:25:32 +0000
commit1a0b02167717b55ed89f5738187b0fc5777000b7 (patch)
tree04cbbcdcac0d7cec32bac6c061923aac6b397a71 /sys/netinet/sctp_timer.c
parent0b9079bf95d0a777c073ecd51c81958dd2036010 (diff)
downloadsrc-1a0b02167717b55ed89f5738187b0fc5777000b7.tar.gz
src-1a0b02167717b55ed89f5738187b0fc5777000b7.zip
Refactor the SHUTDOWN_PENDING state handling.
This is not a functional change but a preperation for the upcoming DTrace support. It is necessary to change the state in one logical operation, even if it involves clearing the sub state SHUTDOWN_PENDING. MFC after: 1 month
Notes
Notes: svn path=/head/; revision=338134
Diffstat (limited to 'sys/netinet/sctp_timer.c')
-rw-r--r--sys/netinet/sctp_timer.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/sys/netinet/sctp_timer.c b/sys/netinet/sctp_timer.c
index 83edeccd39fe..8f6422b45ebe 100644
--- a/sys/netinet/sctp_timer.c
+++ b/sys/netinet/sctp_timer.c
@@ -1567,7 +1567,6 @@ sctp_autoclose_timer(struct sctp_inpcb *inp,
SCTP_STAT_DECR_GAUGE32(sctps_currestab);
}
SCTP_SET_STATE(stcb, SCTP_STATE_SHUTDOWN_SENT);
- SCTP_CLEAR_SUBSTATE(stcb, SCTP_STATE_SHUTDOWN_PENDING);
sctp_stop_timers_for_shutdown(stcb);
if (stcb->asoc.alternate) {
netp = stcb->asoc.alternate;