proto/detect: minor cleanup

pull/3440/head
Victor Julien 7 years ago
parent d062089c60
commit 9cd0bbcab1

@ -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,

Loading…
Cancel
Save