Skip to content

Commit 5871766

Browse files
authored
Merge pull request #1456 from jan-cerny/probes_no_offline
Do not run probes if they don't support offline mode
2 parents 8042103 + e1eae83 commit 5871766

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)