From 35fb444b7a28f5e8564ae70ea0c01a68b06bf4b4 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Sat, 14 Nov 2020 17:33:43 -0500 Subject: [PATCH] bgpd: on debug esi was not properly setup There exists a code path where the esi would be passed to a debug without the esi being setup with any values causing us to display what ever is on the stack. Signed-off-by: Donald Sharp --- bgpd/bgp_zebra.c | 1 + 1 file changed, 1 insertion(+) diff --git a/bgpd/bgp_zebra.c b/bgpd/bgp_zebra.c index 17bb41cb9f..c44e18383e 100644 --- a/bgpd/bgp_zebra.c +++ b/bgpd/bgp_zebra.c @@ -2840,6 +2840,7 @@ static int bgp_zebra_process_local_macip(ZAPI_CALLBACK_ARGS) stream_get(&esi, s, sizeof(esi_t)); } else { state = stream_getl(s); + memset(&esi, 0, sizeof(esi_t)); } bgp = bgp_lookup_by_vrf_id(vrf_id); -- 2.39.5