Skip to content

Commit

Permalink
Inform user about referencing an object from a variable
Browse files Browse the repository at this point in the history
In an OVAL definitions document, a local variable can contain
an object_component subelement which references an OVAL object
identified by its href arrtibute. This object must be evaluated
in order to complete evaluating a state that variable belongs to.
This commit adds info message about processing this speciality.
  • Loading branch information
jan-cerny committed Nov 28, 2015
1 parent 6aff4d8 commit 1d6407c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/OVAL/oval_component.c
Original file line number Diff line number Diff line change
Expand Up @@ -1337,13 +1337,13 @@ static oval_syschar_collection_flag_t _oval_component_evaluate_OBJECTREF(oval_ar
if (!object)
return flag;

const char *obj_id = oval_object_get_id(object);
dI("Variable component references to object '%s'.\n", obj_id);

if (argu->mode == OVAL_MODE_QUERY) {
if (oval_probe_query_object(argu->u.sess, object, 0, &syschar) != 0)
return flag;
} else {
char *obj_id;

obj_id = oval_object_get_id(object);
syschar = oval_syschar_model_get_syschar(argu->u.sysmod, obj_id);
}

Expand Down

0 comments on commit 1d6407c

Please sign in to comment.