[master] 92e700687 vre: Use pcre2_match_context
Dridi Boukelmoune
dridi.boukelmoune at gmail.com
Tue Aug 3 07:17:07 UTC 2021
commit 92e700687ea6c41bfe9a31dd8db4ac98338acd38
Author: Nils Goroll <nils.goroll at 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;
More information about the varnish-commit
mailing list