mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-04 20:18:54 +00:00
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>
This commit is contained in:
parent
4204c59a99
commit
070783e693
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user