From: Victor Julien Date: Sun, 29 Jul 2018 11:12:21 +0000 (+0200) Subject: proto/detect: minor cleanup X-Git-Tag: suricata-4.1.0-rc2~181 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9cd0bbcab1ce04e7f6fa5d7fc1786096da98f69d;p=thirdparty%2Fsuricata.git proto/detect: minor cleanup --- diff --git a/src/app-layer-detect-proto.c b/src/app-layer-detect-proto.c index 08d340ed63..04144981d0 100644 --- a/src/app-layer-detect-proto.c +++ b/src/app-layer-detect-proto.c @@ -1355,11 +1355,10 @@ AppProto AppLayerProtoDetectGetProto(AppLayerProtoDetectThreadCtx *tctx, SCEnter(); AppProto alproto = ALPROTO_UNKNOWN; - AppProto pm_results[ALPROTO_MAX]; - uint16_t pm_matches; if (!FLOW_IS_PM_DONE(f, direction)) { - pm_matches = AppLayerProtoDetectPMGetProto(tctx, f, + AppProto pm_results[ALPROTO_MAX]; + uint16_t pm_matches = AppLayerProtoDetectPMGetProto(tctx, f, buf, buflen, direction, ipproto,