diff options
| author | David Lamparter <equinox@diac24.net> | 2018-10-01 13:04:12 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-10-01 13:04:12 +0200 |
| commit | 0ff69439c052461babb988db2f02eb1cf8b6e51b (patch) | |
| tree | 0da6fb853ede60ba879c7f7e93d9832836c201a5 | |
| parent | d6127f2cc8cf9f5dcbbc25bb433e8ac185d8b16b (diff) | |
| parent | 554bfe88a85124bce00203a020b46e33af00edcd (diff) | |
Merge pull request #3110 from pacovn/Coverity_1221441_Explicit_null_dereferenced
ospf6d: null check (Coverity 1221441)
| -rw-r--r-- | ospf6d/ospf6_abr.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ospf6d/ospf6_abr.c b/ospf6d/ospf6_abr.c index 586584c65c..2cd3df6432 100644 --- a/ospf6d/ospf6_abr.c +++ b/ospf6d/ospf6_abr.c @@ -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) |
