From 87bb7354d81fe60b322aece1f9fd2b12b03391c7 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Thu, 18 Feb 2016 10:25:09 -0500 Subject: [PATCH] ospf6d: Ensure that ospf6d is actually running before handling default routes If a default route is passed into ospf6d then we need to make sure that ospf6d is actually running before we accept and process it. Signed-off-by: Donald Sharp Reviewed-by: Daniel Walton --- ospf6d/ospf6_zebra.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ospf6d/ospf6_zebra.c b/ospf6d/ospf6_zebra.c index a40b3d5f0f..e81e216c5a 100644 --- a/ospf6d/ospf6_zebra.c +++ b/ospf6d/ospf6_zebra.c @@ -215,6 +215,9 @@ ospf6_zebra_read_ipv6 (int command, struct zclient *zclient, struct prefix_ipv6 p; struct in6_addr *nexthop; + if (ospf6 == NULL) + return 0; + s = zclient->ibuf; ifindex = 0; nexthop = NULL; -- 2.39.5