diff src/http/ngx_http_request.c @ 8563:bed310672f39 quic

QUIC: moved ssl configuration pointer to quic configuration. The ssl configuration is obtained at config time and saved for future use.
author Vladimir Homutov <vl@nginx.com>
date Thu, 01 Oct 2020 10:04:35 +0300
parents 8b6486f0fe79
children 0875101c08f7
line wrap: on
line diff
--- a/src/http/ngx_http_request.c
+++ b/src/http/ngx_http_request.c
@@ -307,7 +307,6 @@ ngx_http_init_connection(ngx_connection_
     if (hc->addr_conf->quic) {
         ngx_quic_conf_t           *qcf;
         ngx_http_connection_t     *phc;
-        ngx_http_ssl_srv_conf_t   *sscf;
         ngx_http_core_loc_conf_t  *clcf;
 
         hc->ssl = 1;
@@ -336,10 +335,7 @@ ngx_http_init_connection(ngx_connection_
 
             qcf = ngx_http_get_module_srv_conf(hc->conf_ctx,
                                                ngx_http_quic_module);
-            sscf = ngx_http_get_module_srv_conf(hc->conf_ctx,
-                                                ngx_http_ssl_module);
-
-            ngx_quic_run(c, &sscf->ssl, qcf);
+            ngx_quic_run(c, qcf);
             return;
         }