Allow the self reference to be NULL in case the timer was stopped.

Submitted by:		Timo Voelker
MFC after:		1 week
This commit is contained in:
Michael Tuexen 2020-06-17 15:27:45 +00:00
parent d88fe3d964
commit 2d87bacde4
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=362277

View File

@ -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));