diff options
author | Glenn Strauss <gstrauss@gluelogic.com> | 2019-10-13 03:40:03 -0400 |
---|---|---|
committer | Glenn Strauss <gstrauss@gluelogic.com> | 2020-02-24 11:15:32 -0500 |
commit | 47a758f959846f948466e3cacc3b653c7fff98d2 (patch) | |
tree | 22158774f7eccbee8ac6a80b1c88a3b1ba739c5b /src/mod_simple_vhost.c | |
parent | ad9b7e009bb406042fdac5576b1970e891c08d35 (diff) | |
download | lighttpd-git-47a758f959846f948466e3cacc3b653c7fff98d2.tar.gz |
[core] inline buffer key for *_patch_connection()
handle buffer key as part of DATA_UNSET in *_patch_connection()
(instead of key being (buffer *))
Diffstat (limited to 'src/mod_simple_vhost.c')
-rw-r--r-- | src/mod_simple_vhost.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mod_simple_vhost.c b/src/mod_simple_vhost.c index 711ac5c9..ef456c4f 100644 --- a/src/mod_simple_vhost.c +++ b/src/mod_simple_vhost.c @@ -200,16 +200,16 @@ static int mod_simple_vhost_patch_connection(server *srv, connection *con, plugi for (j = 0; j < dc->value->used; j++) { data_unset *du = dc->value->data[j]; - if (buffer_is_equal_string(du->key, CONST_STR_LEN("simple-vhost.server-root"))) { + if (buffer_is_equal_string(&du->key, CONST_STR_LEN("simple-vhost.server-root"))) { PATCH(server_root); PATCH(docroot_cache_key); PATCH(docroot_cache_value); PATCH(docroot_cache_servername); - } else if (buffer_is_equal_string(du->key, CONST_STR_LEN("simple-vhost.default-host"))) { + } else if (buffer_is_equal_string(&du->key, CONST_STR_LEN("simple-vhost.default-host"))) { PATCH(default_host); - } else if (buffer_is_equal_string(du->key, CONST_STR_LEN("simple-vhost.document-root"))) { + } else if (buffer_is_equal_string(&du->key, CONST_STR_LEN("simple-vhost.document-root"))) { PATCH(document_root); - } else if (buffer_is_equal_string(du->key, CONST_STR_LEN("simple-vhost.debug"))) { + } else if (buffer_is_equal_string(&du->key, CONST_STR_LEN("simple-vhost.debug"))) { PATCH(debug); } } |