forked from Mirror/frr
ospfd: fix clang-SA warning
Need to clear refresh_list before dropping the reference. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
This commit is contained in:
parent
42452fcbb2
commit
a61b32f00d
|
@ -3646,8 +3646,8 @@ void ospf_refresher_unregister_lsa(struct ospf *ospf, struct ospf_lsa *lsa)
|
|||
list_delete(&refresh_list);
|
||||
ospf->lsa_refresh_queue.qs[lsa->refresh_list] = NULL;
|
||||
}
|
||||
ospf_lsa_unlock(&lsa); /* lsa_refresh_queue */
|
||||
lsa->refresh_list = -1;
|
||||
ospf_lsa_unlock(&lsa); /* lsa_refresh_queue */
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue