summaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorPavel Kotucek <pkotucek@cisco.com>2017-08-17 14:18:00 +0200
committerOle Trøan <otroan@employees.org>2017-08-18 12:35:13 +0000
commitdafd20b08aed7a0557317b080018881116b81aca (patch)
tree2912f80e691cd92782a49cd79a338ca9d94a8dfc /src/plugins
parentf77e913549bbe08c09431e2f7d4bea61e4027fea (diff)
Fix vpp crash when adding macip acl
When adding at least two different types of MACIP acl vpp crash. Change-Id: Ibbc76b94015311945be081fe0d8af71cf0672332 Signed-off-by: Pavel Kotucek <pkotucek@cisco.com>
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/acl/acl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/acl/acl.c b/src/plugins/acl/acl.c
index a2f85d9a967..2448a928ac1 100644
--- a/src/plugins/acl/acl.c
+++ b/src/plugins/acl/acl.c
@@ -994,7 +994,7 @@ macip_create_classify_tables (acl_main_t * am, u32 macip_acl_index)
match_type_index = vec_len (mvec);
vec_validate (mvec, match_type_index);
memcpy (mvec[match_type_index].mac_mask,
- a->rules[match_type_index].src_mac_mask, 6);
+ a->rules[i].src_mac_mask, 6);
mvec[match_type_index].prefix_len = a->rules[i].src_prefixlen;
mvec[match_type_index].is_ipv6 = a->rules[i].is_ipv6;
mvec[match_type_index].table_index = ~0;