ospfd: correctly update outbound filter-list once prefix-list is updated

Fix obvious bug where the wrong area filter-lists were being updated
in response to a prefix-list update.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
This commit is contained in:
Renato Westphal 2023-03-02 19:51:51 -03:00
parent 48cdfc16dd
commit 9629b44f45

View file

@ -1787,7 +1787,7 @@ static void ospf_prefix_list_update(struct prefix_list *plist)
&& strcmp(PREFIX_NAME_OUT(area),
prefix_list_name(plist))
== 0) {
PREFIX_LIST_IN(area) = prefix_list_lookup(
PREFIX_LIST_OUT(area) = prefix_list_lookup(
AFI_IP, PREFIX_NAME_OUT(area));
abr_inv++;
}