]> git.puffer.fish Git - mirror/frr.git/commit
lib: fix access-list deletion 8467/head
authorIgor Ryzhov <iryzhov@nfware.com>
Wed, 14 Apr 2021 10:08:18 +0000 (13:08 +0300)
committerIgor Ryzhov <iryzhov@nfware.com>
Wed, 14 Apr 2021 10:08:18 +0000 (13:08 +0300)
commit8c4796a22d196d37a94ed497eaf5dbcd1f3a93de
treea31c3f6bb67c0e14cb571979f5778c58ae4b74e2
parentd75213d26036a2880f23f5e67cb1c890f20299de
lib: fix access-list deletion

Problems with the current implementation:
* Delete hook is called before the deletion of the access-list from the
  master list, which means that daemons processing this hook successfully
  find this access-list, store a pointer to it in their structures, and
  right after that the access-list is freed. Daemons end up having stale
  pointer to the freed structure.
* Route-maps are not notified of the deletion.

This commit fixes both issues.

Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
lib/filter.c
lib/filter_nb.c