|
|
|
@ -41,6 +41,7 @@
|
|
|
|
#include "util-pool.h"
|
|
|
|
#include "util-pool.h"
|
|
|
|
#include "util-unittest.h"
|
|
|
|
#include "util-unittest.h"
|
|
|
|
#include "util-unittest-helper.h"
|
|
|
|
#include "util-unittest-helper.h"
|
|
|
|
|
|
|
|
#include "util-validate.h"
|
|
|
|
|
|
|
|
|
|
|
|
#include "flow.h"
|
|
|
|
#include "flow.h"
|
|
|
|
#include "flow-util.h"
|
|
|
|
#include "flow-util.h"
|
|
|
|
@ -1551,6 +1552,7 @@ AppProto AppLayerProtoDetectGetProto(AppLayerProtoDetectThreadCtx *tctx,
|
|
|
|
uint16_t pm_matches = AppLayerProtoDetectPMGetProto(tctx, f,
|
|
|
|
uint16_t pm_matches = AppLayerProtoDetectPMGetProto(tctx, f,
|
|
|
|
buf, buflen, direction, pm_results, reverse_flow);
|
|
|
|
buf, buflen, direction, pm_results, reverse_flow);
|
|
|
|
if (pm_matches > 0) {
|
|
|
|
if (pm_matches > 0) {
|
|
|
|
|
|
|
|
DEBUG_VALIDATE_BUG_ON(pm_matches > 1);
|
|
|
|
alproto = pm_results[0];
|
|
|
|
alproto = pm_results[0];
|
|
|
|
|
|
|
|
|
|
|
|
// rerun probing parser for other direction if it is unknown
|
|
|
|
// rerun probing parser for other direction if it is unknown
|
|
|
|
|