acl-plugin: VPP-1231: add error checking to acl_plugin_set_acl_vec_for_context 33/11633/2
authorAndrew Yourtchenko <ayourtch@gmail.com>
Mon, 9 Apr 2018 19:46:20 +0000 (21:46 +0200)
committerDamjan Marion <dmarion.lists@gmail.com>
Tue, 10 Apr 2018 10:32:57 +0000 (10:32 +0000)
commite5cbccf35f4d230afafa633abbc88e64ef33d758
tree1a4a10bdf8b08a8c11b1e937cc38a82234ca2577
parent45d9ba1b3212b312e3ddf1dd90bcf3f48c4068e1
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>
src/plugins/acl/lookup_context.c