]> git.puffer.fish Git - matthieu/frr.git/commitdiff
pimd: Properly initialize and delete t_rs_timer
authorDonald Sharp <sharpd@cumulusnetworks.com>
Mon, 18 Jul 2016 13:52:45 +0000 (09:52 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 22 Dec 2016 01:26:02 +0000 (20:26 -0500)
Ensure that we properly initialize and stop the t_rs_timer.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
pimd/pim_upstream.c

index 066fbc47219887786452670d32cdff55e1cfc864..87f6089b28750fe9468f3a072d3f30fe3f5bad6c 100644 (file)
@@ -68,6 +68,7 @@ void pim_upstream_delete(struct pim_upstream *up)
 {
   THREAD_OFF(up->t_join_timer);
   THREAD_OFF(up->t_ka_timer);
+  THREAD_OFF(up->t_rs_timer);
 
   upstream_channel_oil_detach(up);
 
@@ -379,6 +380,7 @@ static struct pim_upstream *pim_upstream_new(struct in_addr source_addr,
   up->ref_count                  = 1;
   up->t_join_timer               = NULL;
   up->t_ka_timer                 = NULL;
+  up->t_rs_timer                 = NULL;
   up->join_state                 = 0;
   up->state_transition           = pim_time_monotonic_sec();
   up->channel_oil                = NULL;