acl-plugin: use vec_elt_at_index rather than pool_elt_at_index to access vector elements 25/8525/3
authorAndrew Yourtchenko <ayourtch@gmail.com>
Mon, 25 Sep 2017 16:37:28 +0000 (18:37 +0200)
committerFlorin Coras <florin.coras@gmail.com>
Mon, 25 Sep 2017 18:40:07 +0000 (18:40 +0000)
commit95524c3a2ed435bf05781a8c052305a6327c90b0
treeae725fc791735661b22887e00f0682db009ab468
parent0c6fb530287de2a28ec1c9df5410f87b65323f9d
acl-plugin: use vec_elt_at_index rather than pool_elt_at_index to access vector elements

bb7f0f644 aimed to fix the coverity issue has incorrectly replaced the previous [] access
with pool_elt_at_index(), for an element of a vector, with predictably interesting result.
VPP-991 has uncovered the issue.

Change-Id: Ifd3fb70332d3fdd1c4ff8570372f394913f7b6c8
Signed-off-by: Andrew Yourtchenko <ayourtch@gmail.com>
src/plugins/acl/acl.c