From a975fdcfeb3816f5dccaea9a2cef212935cf6029 Mon Sep 17 00:00:00 2001 From: Jason Ish Date: Wed, 24 Aug 2016 10:06:26 -0600 Subject: [PATCH] app-layer-dcerpc-udp: fix missleading indentation MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/app-layer-dcerpc-udp.c b/src/app-layer-dcerpc-udp.c index 7ab5f83ab2..a373c8103e 100644 --- a/src/app-layer-dcerpc-udp.c +++ b/src/app-layer-dcerpc-udp.c @@ -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) -- 2.47.2