diff options
author | Glenn Strauss <gstrauss@gluelogic.com> | 2021-03-14 07:35:53 -0400 |
---|---|---|
committer | Glenn Strauss <gstrauss@gluelogic.com> | 2021-03-22 07:10:32 -0400 |
commit | 8845e1e67ee1d5acb277a10095e803a9f2012a42 (patch) | |
tree | cfc1935102043e74884e2a6397a10cfd95b38907 /src/configparser.y | |
parent | e8de53cb7420b8f3b575b650bc4551f23a7b2756 (diff) | |
download | lighttpd-git-8845e1e67ee1d5acb277a10095e803a9f2012a42.tar.gz |
[core] defer pcre_compile until after config parse
Diffstat (limited to 'src/configparser.y')
-rw-r--r-- | src/configparser.y | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/configparser.y b/src/configparser.y index f04d2015..c65eb3da 100644 --- a/src/configparser.y +++ b/src/configparser.y @@ -310,23 +310,6 @@ configparser_parse_condition(config_t * const ctx, const buffer * const obj_tag, buffer_copy_buffer(&dc->string, rvalue); - if (ctx->ok) switch(dc->cond) { - case CONFIG_COND_NE: - case CONFIG_COND_EQ: - break; - case CONFIG_COND_NOMATCH: - case CONFIG_COND_MATCH: { - if (!data_config_pcre_compile(dc)) { - ctx->ok = 0; - } - break; - } - default: - fprintf(stderr, "unknown condition for %s\n", dc->comp_key); - ctx->ok = 0; - break; - } - if (ctx->ok) configparser_push(ctx, dc, 1); else |