]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
detect-flowbits: fix misleading indentation
authorJason Ish <ish@unx.ca>
Wed, 24 Aug 2016 16:15:55 +0000 (10:15 -0600)
committerVictor Julien <victor@inliniac.net>
Mon, 29 Aug 2016 09:39:48 +0000 (11:39 +0200)
detect-flowbits.c: In function ‘FlowBitsTestSig02’:
detect-flowbits.c:475:4: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
    if(error_count == 5)
    ^~
detect-flowbits.c:478:5: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘if’
     SigGroupBuild(de_ctx);
     ^~~~~~~~~~~~~

src/detect-flowbits.c

index 238eb91b4ccfd4dae03e1457d5836b7c02c7c70f..9752f03e8bd5f18092e901842b083db30f059e10 100644 (file)
@@ -472,8 +472,8 @@ static int FlowBitsTestSig02(void)
         error_count++;
     }
 
-   if(error_count == 5)
-    goto end;
+    if(error_count == 5)
+        goto end;
 
     SigGroupBuild(de_ctx);
     DetectEngineThreadCtxInit(&th_v, (void *)de_ctx, (void *)&det_ctx);