]> git.proxmox.com Git - mirror_frr.git/commitdiff
Merge pull request #3110 from pacovn/Coverity_1221441_Explicit_null_dereferenced
authorDavid Lamparter <equinox@diac24.net>
Mon, 1 Oct 2018 11:04:12 +0000 (13:04 +0200)
committerGitHub <noreply@github.com>
Mon, 1 Oct 2018 11:04:12 +0000 (13:04 +0200)
ospf6d: null check (Coverity 1221441)

ospf6d/ospf6_abr.c

index 586584c65c2b3c492d240d87ea16f8c81372b216..2cd3df6432b0f3a13fbd955fa28b4f9b583694e3 100644 (file)
@@ -1004,6 +1004,7 @@ void ospf6_abr_examin_summary(struct ospf6_lsa *lsa, struct ospf6_area *oa)
 
        if (lsa->header->type == htons(OSPF6_LSTYPE_INTER_ROUTER)) {
                /* To pass test suites */
+               assert(router_lsa);
                if (!OSPF6_OPT_ISSET(router_lsa->options, OSPF6_OPT_R)
                    || !OSPF6_OPT_ISSET(router_lsa->options, OSPF6_OPT_V6)) {
                        if (is_debug)