From f88bd20c395bd32dd9135f04f37397f0e14e92b3 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Mon, 2 Oct 2017 10:47:25 -0400 Subject: [PATCH] zebra: Cleanup ptm memory *after* we tell the sockets to clean up The zebra_ptm_finish() code was being called before the client_list deletion. The client_list deletion is attempting to call the ptm daemon and shut down the connection. We should not be doing this *after* we shut down memory associated with it as that we were writing into memory in random spots in this case. Signed-off-by: Donald Sharp --- zebra/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zebra/main.c b/zebra/main.c index 4864b4961d..bf1971c470 100644 --- a/zebra/main.c +++ b/zebra/main.c @@ -127,8 +127,8 @@ static void sigint(void) frr_early_fini(); - zebra_ptm_finish(); list_delete_all_node(zebrad.client_list); + zebra_ptm_finish(); if (retain_mode) RB_FOREACH (vrf, vrf_name_head, &vrfs_by_name) { -- 2.39.5