Skip to content

Commit 8617e44

Browse files
authored
Merge pull request #1377 from jan-cerny/improve_unsupported
Show which OVAL object isn't supported
2 parents 6832328 + a274316 commit 8617e44

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/OVAL/oval_probe.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,15 +141,16 @@ int oval_probe_query_object(oval_probe_session_t *psess, struct oval_object *obj
141141

142142
ph = oval_probe_handler_get(psess->ph, type);
143143

144-
if (ph == NULL) {
145-
char *msg = "OVAL object not supported.";
144+
if (ph == NULL) {
145+
char *msg = oscap_sprintf("OVAL object '%s_object' is not supported.", type_name);
146146

147147
dW("%s", msg);
148148
oval_syschar_add_new_message(sysc, msg, OVAL_MESSAGE_LEVEL_WARNING);
149+
free(msg);
149150
oval_syschar_set_flag(sysc, SYSCHAR_FLAG_NOT_COLLECTED);
150151

151152
return 1;
152-
}
153+
}
153154

154155
if ((ret = oval_probe_ext_handler(type, ph->uptr, PROBE_HANDLER_ACT_EVAL, sysc, flags)) != 0) {
155156
return ret;

0 commit comments

Comments
 (0)