From: Victor Julien Date: Sun, 29 Jul 2018 11:12:21 +0000 (+0200) Subject: proto/detect: minor cleanup X-Git-Tag: suricata-4.0.7~17 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=21e15e2911bb72daf5ac4f523ff25c4271058534;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 acb769a071..25bc438214 100644 --- a/src/app-layer-detect-proto.c +++ b/src/app-layer-detect-proto.c @@ -1314,11 +1314,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,