From: Bhagya Tholpady (bbantwal) Date: Tue, 23 Feb 2021 19:59:35 +0000 (+0000) Subject: Merge pull request #2750 in SNORT/snort3 from ~SVLASIUK/snort3:pcre_relative to master X-Git-Tag: 3.1.2.0~31 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=12e272561ce7568e3a9ff3ed5017c4e2289742be;p=thirdparty%2Fsnort3.git Merge pull request #2750 in SNORT/snort3 from ~SVLASIUK/snort3:pcre_relative to master Squashed commit of the following: commit c23a528787f8a0f9d7052e6e0dba7c84b17473ae Author: Serhii Vlasiuk Date: Thu Feb 11 18:29:10 2021 +0200 ips_options: update cursor position for relative pcre --- diff --git a/src/ips_options/ips_pcre.cc b/src/ips_options/ips_pcre.cc index b5812f99a..eb3abbb63 100644 --- a/src/ips_options/ips_pcre.cc +++ b/src/ips_options/ips_pcre.cc @@ -573,6 +573,7 @@ IpsOption::EvalStatus PcreOption::eval(Cursor& c, Packet* p) { if ( found_offset > 0 ) { + found_offset += adj; c.set_pos(found_offset); c.set_delta(found_offset); }