summaryrefslogtreecommitdiff
path: root/ospf6d/ospf6_interface.c
diff options
context:
space:
mode:
Diffstat (limited to 'ospf6d/ospf6_interface.c')
-rw-r--r--ospf6d/ospf6_interface.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/ospf6d/ospf6_interface.c b/ospf6d/ospf6_interface.c
index 3985b08620..fabcc426ea 100644
--- a/ospf6d/ospf6_interface.c
+++ b/ospf6d/ospf6_interface.c
@@ -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");