Skip to content

Commit 7cc005d

Browse files
committed
TCP packet used in matching fixed
1 parent a9472ba commit 7cc005d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

backend/binsrc/regex/regexfilter.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,8 @@ class RegexNfQueue : public NfQueue::ThreadNfQueue<RegexNfQueue> {
179179
static void on_data_recv(Stream& stream, RegexNfQueue* nfq, string data) {
180180
nfq->match_ctx.matching_has_been_called = true;
181181
nfq->match_ctx.already_closed = false;
182+
nfq->match_ctx.pkt->data = data.data();
183+
nfq->match_ctx.pkt->data_size = data.size();
182184
bool result = nfq->filter_action(nfq->match_ctx.pkt);
183185
if (!result){
184186
nfq->sctx.clean_stream_by_id(nfq->match_ctx.pkt->sid);
@@ -226,4 +228,4 @@ class RegexNfQueue : public NfQueue::ThreadNfQueue<RegexNfQueue> {
226228
};
227229

228230
}}
229-
#endif // REGEX_FILTER_CLASS_CPP
231+
#endif // REGEX_FILTER_CLASS_CPP

0 commit comments

Comments
 (0)