]> git.proxmox.com Git - mirror_frr.git/commitdiff
pbrd: protect from a possible NULL dereference
authorIgor Ryzhov <iryzhov@nfware.com>
Thu, 14 Oct 2021 16:45:43 +0000 (19:45 +0300)
committerIgor Ryzhov <iryzhov@nfware.com>
Thu, 14 Oct 2021 16:45:43 +0000 (19:45 +0300)
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
pbrd/pbr_vty.c

index d083b9d2b0f4c282bbb64c268832dbeb13a5dbb5..9436f4430b5b868c751a3c3102b866f91ccaa5ef 100644 (file)
@@ -499,7 +499,7 @@ DEFPY(pbr_map_nexthop, pbr_map_nexthop_cmd,
                        actual = vrf_lookup_by_id(ifp->vrf_id);
                        vty_out(vty,
                                "Specified Intf %s is not in vrf %s but is in vrf %s, using actual vrf\n",
-                               ifp->name, vrf->name, actual->name);
+                               ifp->name, vrf->name, VRF_LOGNAME(actual));
                }
                nhop.ifindex = ifp->ifindex;
                nhop.vrf_id = ifp->vrf_id;