summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Walton <dwalton@cumulusnetworks.com>2017-07-18 13:19:47 +0000
committerDaniel Walton <dwalton@cumulusnetworks.com>2017-07-18 13:19:47 +0000
commit62d86b87fc592fd8dd619ba1df9c2f29fd32847e (patch)
tree2e29cdff83ae2d732ef78029d372139d45385f7f
parentc14777c6bfd0a446c85243d3a9835054a259c276 (diff)
ospf6d: crash in ospf6_lsdb_show
Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com>
-rw-r--r--ospf6d/ospf6_lsdb.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/ospf6d/ospf6_lsdb.c b/ospf6d/ospf6_lsdb.c
index 23a33d3128..7e08d58791 100644
--- a/ospf6d/ospf6_lsdb.c
+++ b/ospf6d/ospf6_lsdb.c
@@ -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))