ospf6d: fix SA warning

Fix an SA issue in ospf6_interface.c.

Signed-off-by: Mark Stapp <mjs@voltanet.io>
This commit is contained in:
Mark Stapp 2020-09-03 12:57:36 -04:00
parent 09209b4858
commit f6d11a9bf6

View File

@ -1031,7 +1031,10 @@ static int ospf6_interface_show_traffic(struct vty *vty,
struct vrf *vrf = NULL;
struct ospf6_interface *oi = NULL;
vrf = vrf_lookup_by_id(intf_ifp->vrf_id);
if (intf_ifp)
vrf = vrf_lookup_by_id(intf_ifp->vrf_id);
else
vrf = vrf_lookup_by_id(VRF_DEFAULT);
if (!display_once) {
vty_out(vty, "\n");