svn commit: r362277 - head/sys/netinet
Michael Tuexen
tuexen at FreeBSD.org
Wed Jun 17 15:27:46 UTC 2020
Author: tuexen
Date: Wed Jun 17 15:27:45 2020
New Revision: 362277
URL: https://svnweb.freebsd.org/changeset/base/362277
Log:
Allow the self reference to be NULL in case the timer was stopped.
Submitted by: Timo Voelker
MFC after: 1 week
Modified:
head/sys/netinet/sctputil.c
Modified: head/sys/netinet/sctputil.c
==============================================================================
--- head/sys/netinet/sctputil.c Wed Jun 17 13:46:05 2020 (r362276)
+++ head/sys/netinet/sctputil.c Wed Jun 17 15:27:45 2020 (r362277)
@@ -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));
More information about the svn-src-all
mailing list