Merge pull request #11032 from anlancs/fix/bgpd-evpn-mh-null-debug

bgpd: fix NULL deference in evpn-mh's log
This commit is contained in:
Jafar Al-Gharaibeh 2022-04-18 22:42:03 -05:00 committed by GitHub
commit 4079cda2e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -385,9 +385,9 @@ int bgp_evpn_mh_route_update(struct bgp *bgp, struct bgp_evpn_es *es,
if (remote_pi) {
flog_err(
EC_BGP_ES_INVALID,
"%u ERROR: local es route for ESI: %s Vtep %pI4 also learnt from remote",
"%u ERROR: local es route for ESI: %s vtep %pI4 also learnt from remote",
bgp->vrf_id, es ? es->esi_str : "Null",
&es->originator_ip);
es ? &es->originator_ip : NULL);
return -1;
}