app-layer - fix secondary probing parser logic

Apply the same logic to pe2 as pe1 for determining which
probe to call. Missed in previous commit.
pull/2490/merge
Jason Ish 8 years ago committed by Victor Julien
parent cb36dee477
commit ec44585dca

@ -420,7 +420,11 @@ static AppProto AppLayerProtoDetectPPGetProto(Flow *f,
continue;
}
alproto = pe->ProbingParserTs(buf, buflen, NULL);
if (direction & STREAM_TOSERVER && pe->ProbingParserTs != NULL) {
alproto = pe->ProbingParserTs(buf, buflen, NULL);
} else if (pe->ProbingParserTc != NULL) {
alproto = pe->ProbingParserTc(buf, buflen, NULL);
}
if (alproto != ALPROTO_UNKNOWN && alproto != ALPROTO_FAILED)
goto end;
if (alproto == ALPROTO_FAILED ||

Loading…
Cancel
Save