]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
detect/iprep: minor code cleanups
authorVictor Julien <vjulien@oisf.net>
Thu, 25 Apr 2024 12:09:21 +0000 (14:09 +0200)
committerVictor Julien <vjulien@oisf.net>
Wed, 1 May 2024 05:42:21 +0000 (07:42 +0200)
src/detect-iprep.c

index 068619405bceec2f36b274e2513f8a2baadd8865..b995a238ab171aefe8c3fab5e36f6eaad72ac776 100644 (file)
@@ -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)
@@ -213,7 +213,6 @@ static int DetectIPRepMatch (DetectEngineThreadCtx *det_ctx, Packet *p,
 
 int DetectIPRepSetup (DetectEngineCtx *de_ctx, Signature *s, const char *rawstr)
 {
-
     DetectIPRepData *cd = rs_detect_iprep_parse(rawstr);
     if (cd == NULL) {
         SCLogError("\"%s\" is not a valid setting for iprep", rawstr);
@@ -241,7 +240,6 @@ error:
 void DetectIPRepFree (DetectEngineCtx *de_ctx, void *ptr)
 {
     DetectIPRepData *fd = (DetectIPRepData *)ptr;
-
     if (fd == NULL)
         return;