pimd: annotate some pointers as non-null

... make static analysis happy.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
This commit is contained in:
David Lamparter 2023-04-21 15:25:25 +02:00
parent ac4304d0fa
commit 54c037a187

View File

@ -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) {