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