diff options
author | Jon Loeliger <jdl@netgate.com> | 2022-09-12 12:41:06 -0500 |
---|---|---|
committer | Neale Ranns <neale@graphiant.com> | 2022-09-19 01:39:05 +0000 |
commit | 755b529c11d37f839dfba91127657a47390b88a2 (patch) | |
tree | 0fc26749d794d070c721e65ce4768b80021610c1 /src/plugins/abf/abf.api | |
parent | 6e3b3b76727c629b478e9ff9ed8836e595650a18 (diff) |
abf: add API parameter n_paths range checks
Also check for non-zero rpath length in CLI cmd.
While there, no need to use "else" after a return.
Also while there, notice and fix numerous input_line
buffer leaks and fix them.
Type: fix
Fixes: 669d07dc016757b856e1014a415996cf9f0ebc58
Signed-off-by: Jon Loeliger <jdl@netgate.com>
Change-Id: I18ea44b7b82e8938c3e793e7c2a04dfe157076d8
Diffstat (limited to 'src/plugins/abf/abf.api')
-rw-r--r-- | src/plugins/abf/abf.api | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/abf/abf.api b/src/plugins/abf/abf.api index 1cd3da7e557..a748de4522b 100644 --- a/src/plugins/abf/abf.api +++ b/src/plugins/abf/abf.api @@ -51,7 +51,7 @@ define abf_plugin_get_version_reply /** \brief A description of an ABF policy @param policy_id User chosen Identifier for the policy @param acl_index The ACL that the policy will match against - @param n_paths Number of paths + @param n_paths Number of paths, 1..255 @param paths The set of forwarding paths that are being added or removed. */ typedef abf_policy |