]> git.kaiwu.me - nginx.git/commitdiff
QUIC: fixed building ALPN callback without debug and http2.
authorSergey Kandaurov <pluknet@nginx.com>
Tue, 22 Dec 2020 09:04:15 +0000 (12:04 +0300)
committerSergey Kandaurov <pluknet@nginx.com>
Tue, 22 Dec 2020 09:04:15 +0000 (12:04 +0300)
src/http/modules/ngx_http_ssl_module.c

index 111de479b8659346850807c6c146ec2574d37a8b..97c58e4450de060bd04509e6bc178a397e0329c8 100644 (file)
@@ -429,7 +429,7 @@ ngx_http_ssl_alpn_select(ngx_ssl_conn_t *ssl_conn, const unsigned char **out,
 #if (NGX_HTTP_V2 || NGX_HTTP_QUIC)
     ngx_http_connection_t  *hc;
 #endif
-#if (NGX_HTTP_V2 || NGX_DEBUG)
+#if (NGX_HTTP_V2 || NGX_HTTP_QUIC || NGX_DEBUG)
     ngx_connection_t       *c;
 
     c = ngx_ssl_get_connection(ssl_conn);