]> git.proxmox.com Git - mirror_frr.git/commitdiff
ospf6d: fix SA warning
authorMark Stapp <mjs@voltanet.io>
Thu, 3 Sep 2020 16:57:36 +0000 (12:57 -0400)
committerMark Stapp <mjs@voltanet.io>
Thu, 3 Sep 2020 16:57:36 +0000 (12:57 -0400)
Fix an SA issue in ospf6_interface.c.

Signed-off-by: Mark Stapp <mjs@voltanet.io>
ospf6d/ospf6_interface.c

index 3985b08620ebbfca792992f9448214d8452861fa..fabcc426eadedbb6221935fc2fe542a9fbc1f986 100644 (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");