]> git.puffer.fish Git - matthieu/frr.git/commit
lib: fix route map crash on prefix list removal
authorRafael Zalamena <rzalamena@opensourcerouting.org>
Sat, 2 May 2020 01:14:00 +0000 (22:14 -0300)
committerRafael Zalamena <rzalamena@opensourcerouting.org>
Fri, 5 Jun 2020 17:36:54 +0000 (14:36 -0300)
commit81b504228564980bf4dcc7ad4808e2833012c35e
tree3202d8c4803bba8d2fe5fed4ca4ac1f00370d1b2
parent88b8bfdc8af8e9ea45d8b7149efd9fcc8fc2e95f
lib: fix route map crash on prefix list removal

Changes:
- Refactor list entry deletion to use a function that properly notifies
  route map on deletion (fixes a heap-use-after-free).
- Prefix list entry wild card sets `le` to maximum IP mask value and
  `any` is a boolean.
- Fix prefix list trie removal order (in `prefix_list_entry_update_start`).
- Let only the `any` callback change the value of field `any`.

Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
lib/filter_nb.c
lib/plist.c
lib/plist_int.h