From: Jason Ish Date: Wed, 24 Aug 2016 16:06:26 +0000 (-0600) Subject: app-layer-dcerpc-udp: fix missleading indentation X-Git-Tag: suricata-3.1.2~37 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a975fdcfeb3816f5dccaea9a2cef212935cf6029;p=thirdparty%2Fsuricata.git app-layer-dcerpc-udp: fix missleading indentation 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); ^~~~~~~~~~~~~~~~~~~ --- 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)