From 21e15e2911bb72daf5ac4f523ff25c4271058534 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 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, -- 2.47.2