Skip to content
Permalink
Browse files

ospfd: fix clang-SA warning

Need to clear refresh_list before dropping the reference.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
  • Loading branch information...
eqvinox committed Mar 29, 2019
1 parent 336b988 commit da07f5228a063f9cbafde23523ec8bd13b617e75
Showing with 1 addition and 1 deletion.
  1. +1 −1 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 */
}
}

0 comments on commit da07f52

Please sign in to comment.
You can’t perform that action at this time.