summaryrefslogtreecommitdiff
path: root/src/data_config.c
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2021-12-15 10:57:15 -0500
committerGlenn Strauss <gstrauss@gluelogic.com>2021-12-15 10:59:17 -0500
commitf58e8dda1be825d364ac4634c5f231b755210a1f (patch)
treea8233f3529f75a5ab8640453d421e2cde98798c1 /src/data_config.c
parent2e0edb854360ac9966c20f6e5b47b7874a89f756 (diff)
downloadlighttpd-git-f58e8dda1be825d364ac4634c5f231b755210a1f.tar.gz
[core] ignore pcre2 "bad JIT option" warning
ignore pcre2 bad JIT option warning for use of PCRE2_JIT_COMPLETE flag with pcre2_jit_compile() returning PCRE2_ERROR_JIT_BADOPTION x-ref: "pcre2 - Probable user knowledge bug, but suggestions will be welcome" https://redmine.lighttpd.net/boards/2/topics/10202
Diffstat (limited to 'src/data_config.c')
-rw-r--r--src/data_config.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/data_config.c b/src/data_config.c
index f8cacb97..d194e096 100644
--- a/src/data_config.c
+++ b/src/data_config.c
@@ -99,7 +99,7 @@ int data_config_pcre_compile(data_config * const dc, const int pcre_jit, log_err
if (pcre_jit) {
errcode = pcre2_jit_compile(dc->code, PCRE2_JIT_COMPLETE);
- if (0 != errcode) {
+ if (0 != errcode && errcode != PCRE2_ERROR_JIT_BADOPTION) {
pcre2_get_error_message(errcode, errbuf, sizeof(errbuf));
log_error(errh, __FILE__, __LINE__,
"pcre2_jit_compile: %s, regex: %s",