diff options
author | Quentin Young <qlyoung@cumulusnetworks.com> | 2018-04-11 20:05:32 +0200 |
---|---|---|
committer | Quentin Young <qlyoung@cumulusnetworks.com> | 2018-04-13 23:17:42 +0200 |
commit | 8934b81c69f43d81923133fba3989135692c9f34 (patch) | |
tree | 1d7cd1be032c3682c10d383236e7e55c1c39ae6e /ospf6d/ospf6_abr.c | |
parent | ospfd: remove interface param npd (diff) | |
download | frr-8934b81c69f43d81923133fba3989135692c9f34.tar.xz frr-8934b81c69f43d81923133fba3989135692c9f34.zip |
ospf6d: assert that we set a variable
Assert that prefix_lsa was set. Suppresses clang-analyze warnings.
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'ospf6d/ospf6_abr.c')
-rw-r--r-- | ospf6d/ospf6_abr.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ospf6d/ospf6_abr.c b/ospf6d/ospf6_abr.c index 01b8055b6..b895b5ad8 100644 --- a/ospf6d/ospf6_abr.c +++ b/ospf6d/ospf6_abr.c @@ -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) |