From 9cd0bbcab1ce04e7f6fa5d7fc1786096da98f69d Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Sun, 29 Jul 2018 13:12:21 +0200 Subject: [PATCH] proto/detect: minor cleanup --- src/app-layer-detect-proto.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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,