mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-05 04:14:19 +00:00
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>
This commit is contained in:
parent
6c4c3561fe
commit
cbcbac4578
@ -291,6 +291,7 @@ int config_write_if_rmap(struct vty *vty,
|
||||
|
||||
void if_rmap_ctx_delete(struct if_rmap_ctx *ctx)
|
||||
{
|
||||
listnode_delete(if_rmap_ctx_list, ctx);
|
||||
hash_clean(ctx->ifrmaphash, (void (*)(void *))if_rmap_free);
|
||||
if (ctx->name)
|
||||
XFREE(MTYPE_IF_RMAP_CTX_NAME, ctx);
|
||||
|
Loading…
Reference in New Issue
Block a user