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 <sharpd@cumulusnetworks.com>
Reviewed-by: Daniel Walton <dwalton@cumulusnetworks.com>
This commit is contained in:
Donald Sharp 2016-02-18 10:25:09 -05:00
parent 7cfc61d32e
commit 87bb7354d8

View File

@ -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;