Skip to content

Commit

Permalink
SQUASH WIP fw rules
Browse files Browse the repository at this point in the history
  • Loading branch information
victorjulien committed Feb 28, 2025
1 parent 95d5eaa commit 3b8f595
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/detect-engine-sigorder.c
Original file line number Diff line number Diff line change
Expand Up @@ -803,8 +803,10 @@ void SCSigOrderSignatures(DetectEngineCtx *de_ctx)
/* despite having Append in the name, the new Sig/Rule funcs actually prepend with some special
* logic around bidir sigs. So to respect the firewall rule order, we sort this part of the list
* by the add order. */
SCSigOrderFunc OrderFn = { .SWCompare = SCSigOrderByIIdCompare, .next = NULL };
fw_sigw_list = SCSigOrder(fw_sigw_list, &OrderFn);
if (fw_sigw_list) {
SCSigOrderFunc OrderFn = { .SWCompare = SCSigOrderByIIdCompare, .next = NULL };
fw_sigw_list = SCSigOrder(fw_sigw_list, &OrderFn);
}

/* Sort the list */
sigw_list = SCSigOrder(sigw_list, de_ctx->sc_sig_order_funcs);
Expand Down

0 comments on commit 3b8f595

Please sign in to comment.