diff options
| author | Rafael Zalamena <rzalamena@opensourcerouting.org> | 2019-11-08 16:19:38 -0300 |
|---|---|---|
| committer | Rafael Zalamena <rzalamena@opensourcerouting.org> | 2020-06-05 14:36:52 -0300 |
| commit | e0caeadd486a3062fb94a4e6a96e9671bcf7d53c (patch) | |
| tree | fb3b9ffcbae06f9abc088a6b17121ee6648669d9 | |
| parent | b62578bd9b0a261807913a22e73108da721252a9 (diff) | |
lib: fix filter northbound double removal
Don't auto remove filter main access list data structure, it has to be
done manually (or via northbound).
Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
| -rw-r--r-- | lib/filter.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/lib/filter.c b/lib/filter.c index 8085732cbd..fc4f4f5178 100644 --- a/lib/filter.c +++ b/lib/filter.c @@ -377,15 +377,6 @@ static struct filter *filter_seq_check(struct access_list *access, return NULL; } -/* If access_list has no filter then return 1. */ -static bool access_list_empty(struct access_list *access) -{ - if (access->head == NULL && access->tail == NULL) - return true; - else - return false; -} - /* Delete filter from specified access_list. If there is hook function execute it. */ void access_list_filter_delete(struct access_list *access, @@ -412,10 +403,6 @@ void access_list_filter_delete(struct access_list *access, /* Run hook function. */ if (master->delete_hook) (*master->delete_hook)(access); - - /* If access_list becomes empty delete it from access_master. */ - if (access_list_empty(access) && !replace) - access_list_delete(access); } /* Add new filter to the end of specified access_list. */ |
