Skip to content

Commit

Permalink
protodetect: overwrite rflow flag detected by PM
Browse files Browse the repository at this point in the history
rflow flag initially detected by PM must be overwritten
by the results from PP if alproto from PP is finally taken.
  • Loading branch information
ilya-bakhtin committed May 19, 2024
1 parent b728916 commit 0c845b5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/app-layer-detect-proto.c
Original file line number Diff line number Diff line change
Expand Up @@ -1435,9 +1435,7 @@ AppProto AppLayerProtoDetectGetProto(AppLayerProtoDetectThreadCtx *tctx, Flow *f
bool rflow = false;
alproto = AppLayerProtoDetectPPGetProto(f, buf, buflen, ipproto, flags, &rflow);
if (AppProtoIsValid(alproto)) {
if (rflow) {
*reverse_flow = true;
}
*reverse_flow = rflow;
goto end;
}
}
Expand Down

0 comments on commit 0c845b5

Please sign in to comment.