]> git.puffer.fish Git - matthieu/frr.git/commitdiff
ospf6d: fix ospf6 crash in inp lsa processing
authorChirag Shah <chirag@cumulusnetworks.com>
Thu, 11 Oct 2018 16:08:37 +0000 (09:08 -0700)
committerChirag Shah <chirag@cumulusnetworks.com>
Fri, 12 Oct 2018 16:56:09 +0000 (09:56 -0700)
Use ospf6_prefix_same for comparing two exact same prefix
to determine ECMP for a route.
ospf6_route_cmp expects two different prefix rather
being exactly same.

Ticket:CM-22630
Testing Done:
performed ECMP of intra network prefix route via
sending same route via different available
ospf6 paths.

Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
ospf6d/ospf6_intra.c

index 0ce08a61e259b67e9fdde0fddfc6ea5dc6481299..7ae7d682bd90bcab8398d05b5b0c42864799c375 100644 (file)
@@ -1729,7 +1729,7 @@ void ospf6_intra_prefix_lsa_add(struct ospf6_lsa *lsa)
                listnode_add_sort(route->paths, path);
 
                old = ospf6_route_lookup(&route->prefix, oa->route_table);
-               if (old && (ospf6_route_cmp(route, old) == 0)) {
+               if (old) {
                        if (IS_OSPF6_DEBUG_EXAMIN(INTRA_PREFIX)) {
                                prefix2str(&route->prefix, buf, sizeof(buf));
                                zlog_debug("%s Update route: %s old cost %u new cost %u paths %u nh %u",