Skip to content

Commit e1eae83

Browse files
committed
Do not run probes if they don't support offline mode
When the probe doesn't implement offline mode function it means the probe doesn't support offline mode, therefore it should set the supported_offline_mode flag to PROBE_OFFLINE_NONE. This omission caused that the probe was run and scanned the host.
1 parent 53affad commit e1eae83

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/OVAL/probes/probe/worker.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -969,6 +969,8 @@ SEXP_t *probe_worker(probe_t *probe, SEAP_msg_t *msg_in, int *ret)
969969
probe_offline_mode_function_t offline_mode_function = probe_table_get_offline_mode_function(probe->subtype);
970970
if (offline_mode_function != NULL) {
971971
probe->supported_offline_mode = offline_mode_function();
972+
} else {
973+
probe->supported_offline_mode = PROBE_OFFLINE_NONE;
972974
}
973975

974976
/*

0 commit comments

Comments
 (0)