[TLS] set r->uri.authority empty str upon accept()

ensure not NULL for error messages
master
Glenn Strauss 2 years ago
parent 77209c7a26
commit 2d78182546

@ -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;

@ -2029,6 +2029,7 @@ CONNECTION_FUNC(mod_mbedtls_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;
mbedtls_ssl_init(&hctx->ssl);

@ -2258,6 +2258,7 @@ CONNECTION_FUNC(mod_nss_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;

@ -3122,6 +3122,7 @@ CONNECTION_FUNC(mod_openssl_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 = SSL_new(s->ssl_ctx);

@ -2942,6 +2942,7 @@ CONNECTION_FUNC(mod_openssl_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 = SSL_new(s->ssl_ctx);

Loading…
Cancel
Save