From 2f42d894741cff9c9ef0c74bf782ea289828d1fa Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Thu, 25 Apr 2024 14:09:21 +0200 Subject: [PATCH] detect/iprep: minor code cleanups (cherry picked from commit 673d27c8610b3828c85439fd2932b7462cdc9d3c) --- src/detect-iprep.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/detect-iprep.c b/src/detect-iprep.c index cc3d9a04c9..649ba24a2e 100644 --- a/src/detect-iprep.c +++ b/src/detect-iprep.c @@ -155,7 +155,7 @@ static int DetectIPRepMatch (DetectEngineThreadCtx *det_ctx, Packet *p, uint8_t val = 0; SCLogDebug("rd->cmd %u", rd->cmd); - switch(rd->cmd) { + switch (rd->cmd) { case IPRepCmdAny: val = GetHostRepSrc(p, rd->cat, version); if (val == 0) @@ -247,7 +247,6 @@ error: void DetectIPRepFree (DetectEngineCtx *de_ctx, void *ptr) { DetectIPRepData *fd = (DetectIPRepData *)ptr; - if (fd == NULL) return; -- 2.47.3