Mailing List Archive

[master] 92e700687 vre: Use pcre2_match_context
commit 92e700687ea6c41bfe9a31dd8db4ac98338acd38
Author: Nils Goroll <nils.goroll@uplex.de>
Date: Tue Aug 3 09:00:00 2021 +0200

vre: Use pcre2_match_context

diff --git a/lib/libvarnish/vre.c b/lib/libvarnish/vre.c
index 9a8d2cc24..ad0d31a3a 100644
--- a/lib/libvarnish/vre.c
+++ b/lib/libvarnish/vre.c
@@ -201,7 +201,7 @@ vre_match(const vre_t *code, const char *subject, size_t length, size_t offset,
}

matches = pcre2_match(re, (PCRE2_SPTR)subject, length, offset,
- options, data, NULL);
+ options, data, code->re_ctx);

if (datap != NULL && matches > VRE_ERROR_NOMATCH)
*datap = data;
_______________________________________________
varnish-commit mailing list
varnish-commit@varnish-cache.org
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-commit