acl: perform a sanity check of ACL rules before creating ACL 40/21640/2
authorAndrew Yourtchenko <[email protected]>
Mon, 26 Aug 2019 12:25:42 +0000 (12:25 +0000)
committerAndrew Yourtchenko <[email protected]>
Mon, 2 Sep 2019 18:49:49 +0000 (18:49 +0000)
commite48f5574f7a7b183ecb02520989a89aba57f89da
treea928681ab85b807182927dc5f94603cbdfd48b56
parentde6faf9319216ed22abff93bf8c990241e1ff5f1
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