From 46281b21afc52b4cc23fb3bd19bce5eff0bbdd0c Mon Sep 17 00:00:00 2001 From: anlan_cs Date: Thu, 14 Apr 2022 03:45:48 -0400 Subject: [PATCH] bgpd: fix NULL deference in evpn-mh's log Fix NULL deference issue in log. And change one word - "vtep", it should be with lowercase letters like other places. Signed-off-by: anlan_cs --- bgpd/bgp_evpn_mh.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bgpd/bgp_evpn_mh.c b/bgpd/bgp_evpn_mh.c index f6516d220c..f541bebfcf 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; } -- 2.39.5