Blame SOURCES/openscap-1.3.5-bump-yamlfilter-covscan-fix-PR_1620.patch

cf6bdb
diff --git a/src/OVAL/probes/independent/yamlfilecontent_probe.c b/src/OVAL/probes/independent/yamlfilecontent_probe.c
cf6bdb
index 6f18abf83..e7e6cb3f5 100644
cf6bdb
--- a/src/OVAL/probes/independent/yamlfilecontent_probe.c
cf6bdb
+++ b/src/OVAL/probes/independent/yamlfilecontent_probe.c
cf6bdb
@@ -216,12 +216,13 @@ static int yaml_path_query(const char *filepath, const char *yaml_path_cstr, str
cf6bdb
 			result_error("YAML parser error: %s", parser.problem);
cf6bdb
 			goto cleanup;
cf6bdb
 		}
cf6bdb
+
cf6bdb
+		event_type = event.type;
cf6bdb
+
cf6bdb
 		if (yaml_path_filter_event(yaml_path, &parser, &event) == YAML_PATH_FILTER_RESULT_OUT) {
cf6bdb
 			goto next;
cf6bdb
 		}
cf6bdb
 
cf6bdb
-		event_type = event.type;
cf6bdb
-
cf6bdb
 		if (sequence) {
cf6bdb
 			if (event_type == YAML_SEQUENCE_END_EVENT) {
cf6bdb
 				sequence = false;