Skip to content

Commit

Permalink
Merge pull request #2040 from 0intro/fix-probe-reset
Browse files Browse the repository at this point in the history
Fix probe_reset
  • Loading branch information
evgenyz authored Nov 7, 2023
2 parents 8685ea1 + 0d30830 commit dc2ecea
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/OVAL/probes/probe/probe_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,10 @@ static SEXP_t *probe_reset(SEXP_t *arg0, void *arg1)
* FIXME: implement main loop locking & worker waiting
*/
probe_rcache_free(probe->rcache);
probe_ncache_free(probe->ncache);

probe->rcache = probe_rcache_new();
probe->ncache = probe_ncache_new();
probe_ncache_clear(OSCAP_GSYM(ncache));
probe->ncache = OSCAP_GSYM(ncache);

return(NULL);
}
Expand Down Expand Up @@ -211,7 +211,7 @@ void *probe_common_main(void *arg)
if (probe.sd < 0)
fail(errno, "SEAP_openfd2", __LINE__ - 3);

if (SEAP_cmd_register(probe.SEAP_ctx, PROBECMD_RESET, 0, &probe_reset) != 0)
if (SEAP_cmd_register(probe.SEAP_ctx, PROBECMD_RESET, SEAP_CMDREG_USEARG, &probe_reset, &probe) != 0)
fail(errno, "SEAP_cmd_register", __LINE__ - 1);

/*
Expand Down

0 comments on commit dc2ecea

Please sign in to comment.