From 2d87bacde4f3c2c86517e10f9ebf806a2cfd92a6 Mon Sep 17 00:00:00 2001 From: Michael Tuexen Date: Wed, 17 Jun 2020 15:27:45 +0000 Subject: [PATCH] Allow the self reference to be NULL in case the timer was stopped. Submitted by: Timo Voelker MFC after: 1 week --- sys/netinet/sctputil.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/netinet/sctputil.c b/sys/netinet/sctputil.c index eda81df766c3..7a7450f2720a 100644 --- a/sys/netinet/sctputil.c +++ b/sys/netinet/sctputil.c @@ -1730,7 +1730,7 @@ sctp_timeout_handler(void *t) #endif /* sanity checks... */ - KASSERT(tmr->self == tmr, + KASSERT(tmr->self == NULL || tmr->self == tmr, ("sctp_timeout_handler: tmr->self corrupted")); KASSERT(SCTP_IS_TIMER_TYPE_VALID(tmr->type), ("sctp_timeout_handler: invalid timer type %d", tmr->type));