From 7cc005dfb23e47e66dfb7e478d494caed2905ef8 Mon Sep 17 00:00:00 2001 From: Domingo Dirutigliano Date: Tue, 25 Feb 2025 11:18:30 +0100 Subject: [PATCH] TCP packet used in matching fixed --- backend/binsrc/regex/regexfilter.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/backend/binsrc/regex/regexfilter.cpp b/backend/binsrc/regex/regexfilter.cpp index 0ea15d2..bfb2407 100644 --- a/backend/binsrc/regex/regexfilter.cpp +++ b/backend/binsrc/regex/regexfilter.cpp @@ -179,6 +179,8 @@ public: static void on_data_recv(Stream& stream, RegexNfQueue* nfq, string data) { nfq->match_ctx.matching_has_been_called = true; nfq->match_ctx.already_closed = false; + nfq->match_ctx.pkt->data = data.data(); + nfq->match_ctx.pkt->data_size = data.size(); bool result = nfq->filter_action(nfq->match_ctx.pkt); if (!result){ nfq->sctx.clean_stream_by_id(nfq->match_ctx.pkt->sid); @@ -226,4 +228,4 @@ public: }; }} -#endif // REGEX_FILTER_CLASS_CPP \ No newline at end of file +#endif // REGEX_FILTER_CLASS_CPP