diff options
| author | David Lamparter <equinox@opensourcerouting.org> | 2023-04-21 15:25:25 +0200 |
|---|---|---|
| committer | David Lamparter <equinox@opensourcerouting.org> | 2023-04-21 15:30:43 +0200 |
| commit | 54c037a187e2e4babbab3775ff4817fac184bd6a (patch) | |
| tree | 8850d3bf1c8111b2bd84ade62185021def4bf332 | |
| parent | ac4304d0fad0ac24931457643fe881c393c97473 (diff) | |
pimd: annotate some pointers as non-null
... make static analysis happy.
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
| -rw-r--r-- | pimd/pim6_mld.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pimd/pim6_mld.c b/pimd/pim6_mld.c index c3473d5dff..a3569c129f 100644 --- a/pimd/pim6_mld.c +++ b/pimd/pim6_mld.c @@ -2271,6 +2271,7 @@ void gm_ifp_update(struct interface *ifp) if (!pim_ifp->mld) { changed = true; gm_start(ifp); + assume(pim_ifp->mld != NULL); } gm_ifp = pim_ifp->mld; @@ -2406,6 +2407,8 @@ static void gm_show_if_one(struct vty *vty, struct interface *ifp, struct gm_if *gm_ifp = pim_ifp->mld; bool querier; + assume(js_if || tt); + querier = IPV6_ADDR_SAME(&gm_ifp->querier, &pim_ifp->ll_lowest); if (js_if) { |
