]> git.proxmox.com Git - mirror_frr.git/commitdiff
ospf6d: assert that we set a variable
authorQuentin Young <qlyoung@cumulusnetworks.com>
Wed, 11 Apr 2018 18:05:32 +0000 (14:05 -0400)
committerQuentin Young <qlyoung@cumulusnetworks.com>
Fri, 13 Apr 2018 21:17:42 +0000 (17:17 -0400)
Assert that prefix_lsa was set. Suppresses clang-analyze warnings.

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
ospf6d/ospf6_abr.c

index 01b8055b6609b154f1bf4c670f4b0d9ed40770df..b895b5ad8b5ff034f0a45dd10e8504a503894792 100644 (file)
@@ -786,6 +786,9 @@ void ospf6_abr_examin_summary(struct ospf6_lsa *lsa, struct ospf6_area *oa)
        /* (3) if the prefix is equal to an active configured address range */
        /*     or if the NU bit is set in the prefix */
        if (lsa->header->type == htons(OSPF6_LSTYPE_INTER_PREFIX)) {
+               /* must have been set in previous block */
+               assert(prefix_lsa);
+
                range = ospf6_route_lookup(&prefix, oa->range_table);
                if (range) {
                        if (is_debug)