From: Shivani Bhardwaj Date: Mon, 20 Nov 2023 11:44:13 +0000 (+0530) Subject: detect: remove redundant null setting X-Git-Tag: suricata-8.0.0-beta1~1984 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=945ec4bc0a795c44f569ed68551446426a91b00a;p=thirdparty%2Fsuricata.git detect: remove redundant null setting 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. --- diff --git a/src/detect-engine-build.c b/src/detect-engine-build.c index c13264f88e..e6804b57b3 100644 --- a/src/detect-engine-build.c +++ b/src/detect-engine-build.c @@ -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");