summaryrefslogtreecommitdiff
path: root/src/connections.c
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2019-10-10 02:28:04 -0400
committerGlenn Strauss <gstrauss@gluelogic.com>2020-02-24 11:15:32 -0500
commit0ce30f8c22074a0cd2254be1b94e08631e6e8d9c (patch)
treeb179f4229bd9c6bc4e521c1cabce4bcdff63b647 /src/connections.c
parent5d13b408243b1c4b704620514e86d14c5178501e (diff)
downloadlighttpd-git-0ce30f8c22074a0cd2254be1b94e08631e6e8d9c.tar.gz
[core] (const buffer *) for con->server_name
use con->server_name_buf when modules set server_name (e.g from db)
Diffstat (limited to 'src/connections.c')
-rw-r--r--src/connections.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/connections.c b/src/connections.c
index 54766684..3e608610 100644
--- a/src/connections.c
+++ b/src/connections.c
@@ -566,7 +566,7 @@ static connection *connection_init(server *srv) {
CLEAN(physical.rel_path);
CLEAN(physical.etag);
- CLEAN(server_name);
+ CLEAN(server_name_buf);
CLEAN(proto);
CLEAN(dst_addr_buf);
@@ -626,7 +626,7 @@ void connections_free(server *srv) {
CLEAN(physical.etag);
CLEAN(physical.rel_path);
- CLEAN(server_name);
+ CLEAN(server_name_buf);
CLEAN(proto);
CLEAN(dst_addr_buf);
#undef CLEAN
@@ -672,7 +672,7 @@ static int connection_reset(server *srv, connection *con) {
buffer_clear(con->uri.scheme);
/*buffer_clear(con->proto);*//* set to default in connection_accepted() */
/*buffer_clear(con->uri.authority);*/
- buffer_clear(con->server_name);
+ /*buffer_clear(con->server_name_buf);*//* reset when used */
con->request.http_host = NULL;
con->request.content_length = 0;