summaryrefslogtreecommitdiffstats
path: root/src/plugins/abf/abf_api.c
diff options
context:
space:
mode:
authorParixit Gokhale <pgokhale@cisco.com>2019-04-11 14:00:52 -0700
committerParixit Gokhale <pgokhale@cisco.com>2019-04-11 15:32:53 -0700
commitbf386593a064d99784afae449ca6fb45ad4cfbc9 (patch)
tree9cb5b1f07ae2a3ed541ffe5f28d14db83fa4ccd1 /src/plugins/abf/abf_api.c
parent49e7ef60cb38d9f539d70d7a1e85cea5d350a203 (diff)
Adding check to ensure acl_id matches existing acl_id in abf_policy_update
Change-Id: Ia86387ca5a52d6b4b9e5aff0c01c92df13a5dde5 Signed-off-by: Parixit Gokhale <pgokhale@cisco.com>
Diffstat (limited to 'src/plugins/abf/abf_api.c')
-rw-r--r--src/plugins/abf/abf_api.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/abf/abf_api.c b/src/plugins/abf/abf_api.c
index 9da08394fe6..a951fe6475a 100644
--- a/src/plugins/abf/abf_api.c
+++ b/src/plugins/abf/abf_api.c
@@ -111,12 +111,12 @@ vl_api_abf_policy_add_del_t_handler (vl_api_abf_policy_add_del_t * mp)
if (mp->is_add)
{
- abf_policy_update (ntohl (mp->policy.policy_id),
- ntohl (mp->policy.acl_index), paths);
+ rv = abf_policy_update (ntohl (mp->policy.policy_id),
+ ntohl (mp->policy.acl_index), paths);
}
else
{
- abf_policy_delete (ntohl (mp->policy.policy_id), paths);
+ rv = abf_policy_delete (ntohl (mp->policy.policy_id), paths);
}
done:
vec_free (paths);