]> git.puffer.fish Git - mirror/frr.git/commitdiff
bgpd: on debug esi was not properly setup
authorDonald Sharp <sharpd@nvidia.com>
Sat, 14 Nov 2020 22:33:43 +0000 (17:33 -0500)
committerDonald Sharp <sharpd@nvidia.com>
Sat, 14 Nov 2020 23:17:58 +0000 (18:17 -0500)
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 <sharpd@nvidia.com>
bgpd/bgp_zebra.c

index 17bb41cb9f9b773ff0b5e4344bfe9a944dff74d3..c44e18383ef86775394d9437f9bfc70fe9903e8d 100644 (file)
@@ -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);