]> git.puffer.fish Git - mirror/frr.git/commitdiff
ospf6d: Ensure that ospf6d is actually running before handling default routes
authorDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 18 Feb 2016 15:25:09 +0000 (10:25 -0500)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 18 Feb 2016 15:25:09 +0000 (10:25 -0500)
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>
ospf6d/ospf6_zebra.c

index a40b3d5f0f632f22246037407fb4156997e606b5..e81e216c5a202c426d33afeee1da6b8b88c5c636 100644 (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;