diff options
| author | Rafael Zalamena <rzalamena@opensourcerouting.org> | 2020-08-25 10:26:29 -0300 |
|---|---|---|
| committer | Rafael Zalamena <rzalamena@opensourcerouting.org> | 2020-08-25 10:35:46 -0300 |
| commit | 070783e69323b3c6401d9b6dff4ab8e74656d02d (patch) | |
| tree | c5d00baa12305b45cdc119581a713053e7b3a777 /lib/filter_cli.c | |
| parent | 4204c59a99c10e8338d441b3415391656687db8d (diff) | |
lib: fix a crash in zebra style access list
When removing an IPv4 prefix configuration the wrong amount of bytes
will be read from `struct prefix_ipv4` from `DEFPY`, so lets use the
proper function for this.
Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
Diffstat (limited to 'lib/filter_cli.c')
| -rw-r--r-- | lib/filter_cli.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/filter_cli.c b/lib/filter_cli.c index 6529fd6e18..85cb8175f5 100644 --- a/lib/filter_cli.c +++ b/lib/filter_cli.c @@ -104,7 +104,8 @@ static int64_t acl_zebra_get_seq(struct access_list *acl, const char *action, f.type = FILTER_DENY; fz = &f.u.zfilter; - fz->prefix = *p; + if (p->family) + prefix_copy(&fz->prefix, p); fz->exact = exact; fn = filter_lookup_zebra(acl, &f); |
