|
|
|
@ -576,8 +576,8 @@ uint16_t AppLayerDetectGetProto(AlpProtoDetectCtx *ctx,
|
|
|
|
uint16_t pm_matches = AppLayerDetectGetProtoPMParser(ctx, tctx, f, buf, buflen, flags, ipproto, pm_results);
|
|
|
|
uint16_t pm_matches = AppLayerDetectGetProtoPMParser(ctx, tctx, f, buf, buflen, flags, ipproto, pm_results);
|
|
|
|
uint8_t dir = (flags & STREAM_TOSERVER) ? 0 : 1;
|
|
|
|
uint8_t dir = (flags & STREAM_TOSERVER) ? 0 : 1;
|
|
|
|
for (uint16_t i = 0; i < pm_matches; i++) {
|
|
|
|
for (uint16_t i = 0; i < pm_matches; i++) {
|
|
|
|
if (al_proto_table[pm_results[i]].pp_alproto_map[dir] != NULL) {
|
|
|
|
if (al_proto_table[pm_results[i]].PPAlprotoMap[dir] != NULL) {
|
|
|
|
if (pm_results[i] != al_proto_table[pm_results[i]].pp_alproto_map[dir](buf, buflen, NULL)) {
|
|
|
|
if (pm_results[i] != al_proto_table[pm_results[i]].PPAlprotoMap[dir](buf, buflen, NULL)) {
|
|
|
|
/* \todo set event - Needs some deliberation */
|
|
|
|
/* \todo set event - Needs some deliberation */
|
|
|
|
continue;
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|