]> git.kaiwu.me - nginx.git/commitdiff
HTTP/3: moved variable initialization.
authorRoman Arutyunyan <arut@nginx.com>
Wed, 13 Sep 2023 13:57:13 +0000 (17:57 +0400)
committerRoman Arutyunyan <arut@nginx.com>
Wed, 13 Sep 2023 13:57:13 +0000 (17:57 +0400)
src/http/v3/ngx_http_v3_request.c

index 2f5503abacede454ae5135f0304fd16b92ba328b..92c204c24b0f7f5999111194849e1bc3f2197465 100644 (file)
@@ -67,7 +67,6 @@ ngx_http_v3_init_stream(ngx_connection_t *c)
     hc->ssl = 1;
 
     clcf = ngx_http_get_module_loc_conf(hc->conf_ctx, ngx_http_core_module);
-    h3scf = ngx_http_get_module_srv_conf(hc->conf_ctx, ngx_http_v3_module);
 
     if (c->quic == NULL) {
         if (ngx_http_v3_init_session(c) != NGX_OK) {
@@ -75,7 +74,9 @@ ngx_http_v3_init_stream(ngx_connection_t *c)
             return;
         }
 
+        h3scf = ngx_http_get_module_srv_conf(hc->conf_ctx, ngx_http_v3_module);
         h3scf->quic.idle_timeout = clcf->keepalive_timeout;
+
         ngx_quic_run(c, &h3scf->quic);
         return;
     }