Skip to content

Commit

Permalink
ospfd: fix clang-SA warning
Browse files Browse the repository at this point in the history
Need to clear refresh_list before dropping the reference.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
  • Loading branch information
eqvinox committed Apr 17, 2019
1 parent 336b988 commit da07f52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ospfd/ospf_lsa.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
}
}

Expand Down

0 comments on commit da07f52

Please sign in to comment.