]> git.puffer.fish Git - mirror/frr.git/commit
bgpd: Prevent crash in evpn when using default vrf 12461/head
authorDonald Sharp <sharpd@nvidia.com>
Wed, 7 Dec 2022 19:06:12 +0000 (14:06 -0500)
committerDonald Sharp <sharpd@nvidia.com>
Wed, 7 Dec 2022 19:06:12 +0000 (14:06 -0500)
commitdc9ca53f94794f79d10868aec288119fcb1e02b5
tree471fca27b9cac6b7b0585edee38117659225343f
parent91aaed76c5043b848de243bd6161996f66eaa2cd
bgpd: Prevent crash in evpn when using default vrf

The default vrf in bgp when created, ends up having the
bgp->name as NULL.  This of course crashes the ilk
of `json_object_string_add` when a NULL is passed in.

Go through all the places in bgp_evpn_mh.c and fix
so that it doesn't crash.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
bgpd/bgp_evpn_mh.c