detect/firewall: minor code cleanup

pull/15486/head
Victor Julien 1 month ago
parent 4db84cfa28
commit a9b3ad49ea

@ -2447,12 +2447,11 @@ static void DetectRunTx(ThreadVars *tv,
* policies. */
const int r = DetectTxFirewallNoRulesApplyPolicies(
det_ctx, p, f, &tx, alproto, flow_flags, array_idx, last_tx);
if (r != 0) {
if (r == 1) {
SCLogDebug("done");
return;
} else if (r == 2)
goto next_tx_fw; /* next tx */
if (r == 1) {
SCLogDebug("done");
return;
} else if (r == 2) {
goto next_tx_fw; /* next tx, need to clean up buffers */
}
}

Loading…
Cancel
Save