]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
detect: remove redundant null setting
authorShivani Bhardwaj <shivani@oisf.net>
Mon, 20 Nov 2023 11:44:13 +0000 (17:14 +0530)
committerVictor Julien <victor@inliniac.net>
Tue, 5 Dec 2023 10:33:09 +0000 (11:33 +0100)
de_ctx->dport_hash_table is already set to NULL in the fn
DetectPortHashFree which is called right before this setting.
Remove the redundant setting.

src/detect-engine-build.c

index c13264f88e330e3841cd5944af988430f90cd8e2..e6804b57b37dce53b9ef3d27ba08ca753a80a230 100644 (file)
@@ -1244,7 +1244,6 @@ static DetectPort *RulesGroupByPorts(DetectEngineCtx *de_ctx, uint8_t ipproto, u
         BUG_ON(r == -1);
     }
     DetectPortHashFree(de_ctx);
-    de_ctx->dport_hash_table = NULL;
 
     SCLogDebug("rules analyzed");