acl-plugin: VPP-1231: add error checking to acl_plugin_set_acl_vec_for_context 62/11662/3
authorAndrew Yourtchenko <ayourtch@gmail.com>
Mon, 9 Apr 2018 19:46:20 +0000 (21:46 +0200)
committerMarco Varlese <marco.varlese@suse.de>
Wed, 11 Apr 2018 10:01:00 +0000 (10:01 +0000)
commiteba3cea3e4d2865b8b5462f656d42204f28d3f19
treeb0c1b924c2b3cae8c06724b4f319d9fdacc0d08d
parent7486d3c60fbb205c356a166521166b6eeefcc111
acl-plugin: VPP-1231: add error checking to acl_plugin_set_acl_vec_for_context

The users of ACL lookup contexts might not check the data they supply,
so do it on their behalf in this function, and return an error if
an ACL does not exist or if they attempt to apply the same ACL twice.

Change-Id: I89d871e60f267ce643f88574c83baf9cd0a2d7b3
Signed-off-by: Andrew Yourtchenko <ayourtch@gmail.com>
(cherry picked from commit e5cbccf35f4d230afafa633abbc88e64ef33d758)
src/plugins/acl/lookup_context.c