diff options
author | Glenn Strauss <gstrauss@gluelogic.com> | 2019-10-09 23:24:25 -0400 |
---|---|---|
committer | Glenn Strauss <gstrauss@gluelogic.com> | 2020-02-24 11:15:32 -0500 |
commit | 83535bbef351bc39edb201f815a79c0046f83d20 (patch) | |
tree | a30894b4bacf309226e649b953a0f08dc2eed03a /src/configfile.c | |
parent | 5c0c4936b4bc4fe57da0cf1f02ce5df987ab91a2 (diff) | |
download | lighttpd-git-83535bbef351bc39edb201f815a79c0046f83d20.tar.gz |
[core] differentiate array_get_* for ro and rw
array_get_element_klen() is now intended for read-only access
array_get_data_unset() is used by config processing for r/w access
array_get_buf_ptr() is used for r/w access to ds->value (string buffer)
Diffstat (limited to 'src/configfile.c')
-rw-r--r-- | src/configfile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/configfile.c b/src/configfile.c index a7ac53bc..2e99af8c 100644 --- a/src/configfile.c +++ b/src/configfile.c @@ -32,7 +32,7 @@ static void config_warn_authn_module (server *srv, const char *module, size_t len) { for (size_t i = 0; i < srv->config_context->used; ++i) { const data_config *config = (data_config const*)srv->config_context->data[i]; - const data_unset *du = array_get_element(config->value, "auth.backend"); + const data_unset *du = array_get_element_klen(config->value, CONST_STR_LEN("auth.backend")); if (NULL != du && du->type == TYPE_STRING) { data_string *ds = (data_string *)du; if (buffer_is_equal_string(ds->value, module, len)) { |