diff options
author | Glenn Strauss <gstrauss@gluelogic.com> | 2021-01-30 16:49:18 -0500 |
---|---|---|
committer | Glenn Strauss <gstrauss@gluelogic.com> | 2021-01-30 22:17:40 -0500 |
commit | 2d78182546d5c77a719764d22930e7eada55227e (patch) | |
tree | 18db5ea4a6c286c216e8be6cffc9bbe1cc23e432 /src/mod_gnutls.c | |
parent | 77209c7a26bcc70f257ea1e4505078d6bc4dc33b (diff) | |
download | lighttpd-git-2d78182546d5c77a719764d22930e7eada55227e.tar.gz |
[TLS] set r->uri.authority empty str upon accept()
ensure not NULL for error messages
Diffstat (limited to 'src/mod_gnutls.c')
-rw-r--r-- | src/mod_gnutls.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mod_gnutls.c b/src/mod_gnutls.c index dbe33c33..0732c7b7 100644 --- a/src/mod_gnutls.c +++ b/src/mod_gnutls.c @@ -2517,6 +2517,7 @@ CONNECTION_FUNC(mod_gnutls_handle_con_accept) hctx->tmp_buf = con->srv->tmp_buf; hctx->errh = r->conf.errh; con->plugin_ctx[p->id] = hctx; + buffer_string_set_length(&r->uri.authority, 0); plugin_ssl_ctx * const s = p->ssl_ctxs + srv_sock->sidx; hctx->ssl_session_ticket = s->ssl_session_ticket; |