Skip to content

Commit

Permalink
detect: minor optimization for tx
Browse files Browse the repository at this point in the history
do not bother to clean the buffers, if we did not run detection
for this transaction.
  • Loading branch information
catenacyber authored and victorjulien committed Aug 4, 2024
1 parent 3ad15f5 commit bd23185
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/detect.c
Original file line number Diff line number Diff line change
Expand Up @@ -1638,9 +1638,9 @@ static void DetectRunTx(ThreadVars *tv,

StoreDetectFlags(&tx, flow_flags, ipproto, alproto, new_detect_flags);
}
next:
InspectionBufferClean(det_ctx);

next:
if (!ires.has_next)
break;
}
Expand Down

0 comments on commit bd23185

Please sign in to comment.