]> git.puffer.fish Git - mirror/frr.git/commitdiff
ospf6d: crash in ospf6_lsdb_show 834/head
authorDaniel Walton <dwalton@cumulusnetworks.com>
Tue, 18 Jul 2017 13:19:47 +0000 (13:19 +0000)
committerDaniel Walton <dwalton@cumulusnetworks.com>
Tue, 18 Jul 2017 13:19:47 +0000 (13:19 +0000)
Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com>
ospf6d/ospf6_lsdb.c

index 23a33d3128ed9aabfaca9c96fab9626111cd4a14..7e08d58791e13ee57d7f8a31d58e2cfdec36d7f4 100644 (file)
@@ -389,8 +389,10 @@ void ospf6_lsdb_show(struct vty *vty, enum ospf_lsdb_show_level level,
        if (level == OSPF6_LSDB_SHOW_LEVEL_NORMAL)
                ospf6_lsa_show_summary_header(vty);
 
-       end = ospf6_lsdb_head(lsdb, !!type + !!(type && adv_router), *type,
-                             *adv_router, &lsa);
+       end = ospf6_lsdb_head(lsdb, !!type + !!(type && adv_router),
+                             type ? *type : 0,
+                             adv_router ? *adv_router : 0,
+                             &lsa);
        while (lsa) {
                if ((!adv_router || lsa->header->adv_router == *adv_router)
                    && (!id || lsa->header->id == *id))