summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_evpn_mh.c
diff options
context:
space:
mode:
authorJafar Al-Gharaibeh <jafar@atcorp.com>2022-04-19 05:42:03 +0200
committerGitHub <noreply@github.com>2022-04-19 05:42:03 +0200
commit4079cda2e65c28ea6e2550251571f26c1a1ec1eb (patch)
treef9172b56004655290a958c4af32b8391eda2f43e /bgpd/bgp_evpn_mh.c
parentMerge pull request #11029 from rampxxxx/isis_mtu (diff)
parentbgpd: fix NULL deference in evpn-mh's log (diff)
downloadfrr-4079cda2e65c28ea6e2550251571f26c1a1ec1eb.tar.xz
frr-4079cda2e65c28ea6e2550251571f26c1a1ec1eb.zip
Merge pull request #11032 from anlancs/fix/bgpd-evpn-mh-null-debug
bgpd: fix NULL deference in evpn-mh's log
Diffstat (limited to 'bgpd/bgp_evpn_mh.c')
-rw-r--r--bgpd/bgp_evpn_mh.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bgpd/bgp_evpn_mh.c b/bgpd/bgp_evpn_mh.c
index b9e3577f5..eace9ee69 100644
--- a/bgpd/bgp_evpn_mh.c
+++ b/bgpd/bgp_evpn_mh.c
@@ -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;
}