pcrexform: use substring and not whole match

pull/6518/head
Philippe Antoine 4 years ago committed by Victor Julien
parent c9d664b0a0
commit 416575ea02

@ -135,7 +135,7 @@ static void DetectTransformPcrexform(InspectionBuffer *buffer, void *options)
if (ret > 0) {
const char *str;
PCRE2_SIZE caplen;
ret = pcre2_substring_get_bynumber(match, 0, (PCRE2_UCHAR8 **)&str, &caplen);
ret = pcre2_substring_get_bynumber(match, 1, (PCRE2_UCHAR8 **)&str, &caplen);
if (ret >= 0) {
InspectionBufferCopy(buffer, (uint8_t *)str, (uint32_t)caplen);

Loading…
Cancel
Save