mirror of
https://github.com/nginx/nginx.git
synced 2025-02-25 18:55:26 -06:00
Added check for initialized c->ssl before calling SSL shutdown.
This commit is contained in:
@@ -478,7 +478,9 @@ ngx_quic_close_connection(ngx_connection_t *c)
|
||||
ngx_log_debug1(NGX_LOG_DEBUG_EVENT, c->log, 0,
|
||||
"close quic connection: %d", c->fd);
|
||||
|
||||
(void) ngx_ssl_shutdown(c);
|
||||
if (c->ssl) {
|
||||
(void) ngx_ssl_shutdown(c);
|
||||
}
|
||||
|
||||
#if (NGX_STAT_STUB)
|
||||
(void) ngx_atomic_fetch_add(ngx_stat_active, -1);
|
||||
|
||||
Reference in New Issue
Block a user