acl: perform a sanity check of ACL rules before creating ACL 15/21515/3
authorAndrew Yourtchenko <[email protected]>
Mon, 26 Aug 2019 12:25:42 +0000 (12:25 +0000)
committerDamjan Marion <[email protected]>
Wed, 28 Aug 2019 15:05:06 +0000 (15:05 +0000)
commit29ab3446c6e59773779c8e12fd00544828e8a51a
treeadd650366a9634e8fe884dc05e101085d90cf105
parenteef61bb81a22f4c61c01e5afc8bd3b8612a71534
acl: perform a sanity check of ACL rules before creating ACL

Adding acl with incorrect arguments like 1.1.1.1/24 (instead of 1.1.1.0/24)
don't cause a disaster, but doesn't match either, as some might expect.

Add an explicit sanity check which returns an error.

Type: fix

Change-Id: Id1601f4b9c9887d3e7e70aac419d1f1de0c0e012
Signed-off-by: Andrew Yourtchenko <[email protected]>
src/plugins/acl/acl.c