]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
app-layer-dcerpc-udp: fix missleading indentation
authorJason Ish <ish@unx.ca>
Wed, 24 Aug 2016 16:06:26 +0000 (10:06 -0600)
committerVictor Julien <victor@inliniac.net>
Mon, 29 Aug 2016 09:39:48 +0000 (11:39 +0200)
app-layer-dcerpc-udp.c: In function ‘DCERPCUDPParserTest01’:
app-layer-dcerpc-udp.c:1105:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
     if (alp_tctx != NULL)
     ^~
app-layer-dcerpc-udp.c:1107:2: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘if’
  StreamTcpFreeConfig(TRUE);
  ^~~~~~~~~~~~~~~~~~~

src/app-layer-dcerpc-udp.c

index 7ab5f83ab2e3fb0e1b9dea69618b1aed486436bd..a373c8103e5e781177f1d67f7ec893ed68921e7e 100644 (file)
@@ -1102,10 +1102,11 @@ int DCERPCUDPParserTest01(void)
        }
 
 end:
-    if (alp_tctx != NULL)
+    if (alp_tctx != NULL) {
         AppLayerParserThreadCtxFree(alp_tctx);
-       StreamTcpFreeConfig(TRUE);
-       return result;
+    }
+    StreamTcpFreeConfig(TRUE);
+    return result;
 }
 
 void DCERPCUDPParserRegisterTests(void)