]> git.puffer.fish Git - matthieu/frr.git/commitdiff
bgpd: fix NULL deference in evpn-mh's log
authoranlan_cs <vic.lan@pica8.com>
Thu, 14 Apr 2022 07:45:48 +0000 (03:45 -0400)
committermergify-bot <noreply@mergify.com>
Tue, 19 Apr 2022 03:42:52 +0000 (03:42 +0000)
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 <vic.lan@pica8.com>
(cherry picked from commit 46281b21afc52b4cc23fb3bd19bce5eff0bbdd0c)

bgpd/bgp_evpn_mh.c

index d5046c438137227e2b82f22c96dbbb5a42cc7c0c..680bf4a4454cce601a5a5534e93720d1e3ce955a 100644 (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;
        }