Skip to content

Commit

Permalink
fixup! fixup! fixup! jsonbuilder: restrict visibility
Browse files Browse the repository at this point in the history
  • Loading branch information
catenacyber committed Jan 23, 2025
1 parent 0585291 commit 9249686
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/detect-engine-prefilter.c
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,8 @@ void DetectRunPrefilterTx(DetectEngineThreadCtx *det_ctx,
}

PREFILTER_PROFILING_START(det_ctx);
engine->cb.PrefilterTx(
det_ctx, engine->pectx, p, p->flow, (void *) tx_ptr, tx->tx_id, tx->tx_data_ptr, flow_flags);
engine->cb.PrefilterTx(det_ctx, engine->pectx, p, p->flow, (void *)tx_ptr, tx->tx_id,
tx->tx_data_ptr, flow_flags);
PREFILTER_PROFILING_END(det_ctx, engine->gid);

if (tx->tx_progress > engine->ctx.tx_min_progress && engine->is_last_for_progress) {
Expand Down
7 changes: 4 additions & 3 deletions src/detect.c
Original file line number Diff line number Diff line change
Expand Up @@ -1180,7 +1180,8 @@ static bool DetectRunTxInspectRule(ThreadVars *tv,
if (!(inspect_flags & BIT_U32(engine->id)) &&
direction == engine->dir)
{
const void *tx_ptr = DetectGetInnerTx(tx->tx_ptr, f->alproto, engine->alproto, flow_flags);
const void *tx_ptr =
DetectGetInnerTx(tx->tx_ptr, f->alproto, engine->alproto, flow_flags);
if (tx_ptr == NULL) {
if (engine->alproto != ALPROTO_UNKNOWN) {
/* special case: file_data on 'alert tcp' will have engines
Expand Down Expand Up @@ -1223,8 +1224,8 @@ static bool DetectRunTxInspectRule(ThreadVars *tv,
} else {
KEYWORD_PROFILING_SET_LIST(det_ctx, engine->sm_list);
DEBUG_VALIDATE_BUG_ON(engine->v2.Callback == NULL);
match = engine->v2.Callback(
de_ctx, det_ctx, engine, s, f, flow_flags, alstate, (void *) tx_ptr, tx->tx_id);
match = engine->v2.Callback(de_ctx, det_ctx, engine, s, f, flow_flags, alstate,
(void *)tx_ptr, tx->tx_id);
TRACE_SID_TXS(s->id, tx, "engine %p match %d", engine, match);
if (engine->stream) {
can->stream_stored = true;
Expand Down

0 comments on commit 9249686

Please sign in to comment.