Browse Source

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

ensure not NULL for error messages
master
Glenn Strauss 10 months ago
parent
commit
2d78182546
  1. 1
      src/mod_gnutls.c
  2. 1
      src/mod_mbedtls.c
  3. 1
      src/mod_nss.c
  4. 1
      src/mod_openssl.c
  5. 1
      src/mod_wolfssl.c

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

1
src/mod_mbedtls.c

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

1
src/mod_nss.c

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

1
src/mod_openssl.c

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

1
src/mod_wolfssl.c

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