]> git.proxmox.com Git - mirror_frr.git/commit
ripd: unlink if-rmap container from global list before removing it
authorRenato Westphal <renato@opensourcerouting.org>
Fri, 19 Apr 2019 19:54:29 +0000 (16:54 -0300)
committerRenato Westphal <renato@opensourcerouting.org>
Fri, 19 Apr 2019 19:54:29 +0000 (16:54 -0300)
commitcbcbac457870a9b569104b8250e57f0bd8d55114
tree31e2bcf8bcf0bcb0808ce3449db99074125947cd
parent6c4c3561fe07a0f388aba938643d8932450f8be1
ripd: unlink if-rmap container from global list before removing it

This solves a crash that happens if the "route-map" command is used
after "router rip" + "no router rip" + "router rip".

Once interface route-maps are converted to the new northbound model,
we'll be able to remove the if_rmap_ctx_list global list (which is
an ugly hack to make things work right now).

Bug found by the CLI fuzzer.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
lib/if_rmap.c