[Open-scap] [PATCH] Fixed arguments in wrong order
Josh Adams
jadams at tresys.com
Fri Jun 4 19:03:01 UTC 2010
The call to xccdf_policy_evaluate_cb had its rule_id and content_name
args in the wrong order.
---
src/XCCDF_POLICY/xccdf_policy.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/XCCDF_POLICY/xccdf_policy.c b/src/XCCDF_POLICY/xccdf_policy.c
index 55b6980..f06e310 100644
--- a/src/XCCDF_POLICY/xccdf_policy.c
+++ b/src/XCCDF_POLICY/xccdf_policy.c
@@ -489,7 +489,7 @@ static bool xccdf_policy_check_evaluate(struct xccdf_policy * policy, struct xcc
content_name = xccdf_check_content_ref_get_name(content);
/*href = xccdf_check_content_ref_get_href(content);*/
/* Check if this is OVAL ? Never mind. Added to TODO */
- ret = xccdf_policy_evaluate_cb(policy, system_name, rule_id, content_name);
+ ret = xccdf_policy_evaluate_cb(policy, system_name, content_name, rule_id);
}
xccdf_check_content_ref_iterator_free(content_it);
}
--
1.7.0.1
More information about the Open-scap-list
mailing list