From: Donald Sharp Date: Thu, 18 Feb 2016 15:25:09 +0000 (-0500) Subject: ospf6d: Ensure that ospf6d is actually running before handling default routes X-Git-Tag: frr-2.0-rc1~1122^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=87bb7354d81fe60b322aece1f9fd2b12b03391c7;p=mirror%2Ffrr.git 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 --- 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;