]> 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)
committerIgor Ryzhov <iryzhov@nfware.com>
Tue, 17 Nov 2020 18:07:59 +0000 (21:07 +0300)
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 a3ad5e9ea74627d6ca7fa62ccc9d8d03781081da..a761cbcff24512716f5e3d95846cca4fe5d1acfe 100644 (file)
@@ -2721,6 +2721,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);