From 76ca2fbaa2b8810b7015ee03aafcab25e385fa48 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Wed, 8 Mar 2017 10:27:21 -0500 Subject: [PATCH] pimd: Fix core from json static mroute show When we have no normal mroutes and only static mroutes there exists a code path where we attempted to dereference c_oil when we were showing static mroutes. Looks like a cut-n-paste error, we should be using s_route->c_oil there Ticket: CM-15013 Signed-off-by: Donald Sharp --- pimd/pim_cmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pimd/pim_cmd.c b/pimd/pim_cmd.c index 1224bc5fc8..d5dbe4f7ab 100644 --- a/pimd/pim_cmd.c +++ b/pimd/pim_cmd.c @@ -3274,7 +3274,7 @@ static void show_mroute(struct vty *vty, u_char uj) json_object_string_add(json_ifp_out, "group", grp_str); json_object_boolean_true_add(json_ifp_out, "protocolStatic"); json_object_string_add(json_ifp_out, "inboundInterface", in_ifname); - json_object_int_add(json_ifp_out, "iVifI", c_oil->oil.mfcc_parent); + json_object_int_add(json_ifp_out, "iVifI", s_route->c_oil.oil.mfcc_parent); json_object_string_add(json_ifp_out, "outboundInterface", out_ifname); json_object_int_add(json_ifp_out, "oVifI", oif_vif_index); json_object_int_add(json_ifp_out, "ttl", ttl); -- 2.39.5