summaryrefslogtreecommitdiff
path: root/lib/thread.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2020-06-11 18:47:01 -0400
committerGitHub <noreply@github.com>2020-06-11 18:47:01 -0400
commit110597aa04169a1594549e0d6a53859b7e7be8ff (patch)
treef2d8061a96bd9cecac6550858854a29d6394ba48 /lib/thread.c
parentdbb482bf33123dbcaeecb5f1477681f7dbaf8dc2 (diff)
parentd617669d3776509363fd0d37eb240fb5dc0fdeaa (diff)
Merge pull request #6566 from mjstapp/fix_daemon_fini
*: have daemons call frr_fini() at termination
Diffstat (limited to 'lib/thread.c')
-rw-r--r--lib/thread.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/thread.c b/lib/thread.c
index 4d689a9f88..9b2f5661ac 100644
--- a/lib/thread.c
+++ b/lib/thread.c
@@ -1094,7 +1094,8 @@ static void do_thread_cancel(struct thread_master *master)
}
/* Delete and free all cancellation requests */
- list_delete_all_node(master->cancel_req);
+ if (master->cancel_req)
+ list_delete_all_node(master->cancel_req);
/* Wake up any threads which may be blocked in thread_cancel_async() */
master->canceled = true;