From a61b32f00dffd7c75a84842286265eacf7bc318f Mon Sep 17 00:00:00 2001 From: David Lamparter Date: Fri, 29 Mar 2019 12:25:45 +0100 Subject: [PATCH] ospfd: fix clang-SA warning Need to clear refresh_list before dropping the reference. Signed-off-by: David Lamparter --- ospfd/ospf_lsa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ospfd/ospf_lsa.c b/ospfd/ospf_lsa.c index e38193cffc..bf46d22031 100644 --- a/ospfd/ospf_lsa.c +++ b/ospfd/ospf_lsa.c @@ -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 */ } }