diff --git a/ospf6d/ospf6_abr.c b/ospf6d/ospf6_abr.c index f289bf26b9..cc99d7c387 100644 --- a/ospf6d/ospf6_abr.c +++ b/ospf6d/ospf6_abr.c @@ -710,24 +710,11 @@ void ospf6_abr_defaults_to_stub(struct ospf6 *o) struct listnode *node, *nnode; struct ospf6_area *oa; struct ospf6_route *def, *route; - struct ospf6_redist *red; int type = DEFAULT_ROUTE; - struct prefix_ipv6 p = {}; if (!o->backbone) return; - red = ospf6_redist_lookup(o, type, 0); - if (!red) - return; - - p.family = AF_INET6; - p.prefixlen = 0; - - route = ospf6_route_lookup((struct prefix *)&p, o->external_table); - if (!route) - return; - def = ospf6_route_create(); def->type = OSPF6_DEST_TYPE_NETWORK; def->prefix.family = AF_INET6;