From 8e4844dc49984bc3d92b3758fa6c7efff71fe0ef Mon Sep 17 00:00:00 2001 From: Michael Tuexen Date: Sun, 14 Jun 2015 17:48:44 +0000 Subject: [PATCH] Stop the heartbeat timer when removing a net. Thanks to the reporter of https://code.google.com/p/sctp-refimpl/issues/detail?id=14 for reporting the issue. MFC after: 3 days --- sys/netinet/sctp_var.h | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/netinet/sctp_var.h b/sys/netinet/sctp_var.h index 31d93dd21bd..ae1b3eb3089 100644 --- a/sys/netinet/sctp_var.h +++ b/sys/netinet/sctp_var.h @@ -178,6 +178,7 @@ extern struct pr_usrreqs sctp_usrreqs; if (SCTP_DECREMENT_AND_CHECK_REFCOUNT(&(__net)->ref_count)) { \ (void)SCTP_OS_TIMER_STOP(&(__net)->rxt_timer.timer); \ (void)SCTP_OS_TIMER_STOP(&(__net)->pmtu_timer.timer); \ + (void)SCTP_OS_TIMER_STOP(&(__net)->hb_timer.timer); \ if ((__net)->ro.ro_rt) { \ RTFREE((__net)->ro.ro_rt); \ (__net)->ro.ro_rt = NULL; \