From bca180289041c5a69ff73fd5a14c86d97337ecbd Mon Sep 17 00:00:00 2001 From: Michael Tuexen Date: Mon, 18 May 2020 18:42:43 +0000 Subject: [PATCH] Cleanup, no functional change intended. MFC after: 3 days --- sys/netinet/sctp_pcb.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/sys/netinet/sctp_pcb.c b/sys/netinet/sctp_pcb.c index 6a2b558729df..abea6e8f9dbd 100644 --- a/sys/netinet/sctp_pcb.c +++ b/sys/netinet/sctp_pcb.c @@ -5203,16 +5203,12 @@ sctp_free_assoc(struct sctp_inpcb *inp, struct sctp_tcb *stcb, int from_inpcbfre SCTP_FREE_SHOULD_USE_GRACEFUL_CLOSE, SCTP_CALLED_DIRECTLY_NOCMPSET); SCTP_INP_DECR_REF(inp); - goto out_of; } else { /* The socket is still open. */ SCTP_INP_DECR_REF(inp); + SCTP_INP_RUNLOCK(inp); } } - if (from_inpcbfree == SCTP_NORMAL_PROC) { - SCTP_INP_RUNLOCK(inp); - } -out_of: /* destroyed the asoc */ #ifdef SCTP_LOG_CLOSING sctp_log_closing(inp, NULL, 11);