mirror of
https://github.com/nginx/nginx.git
synced 2025-07-30 18:16:30 +08:00
Added check for initialized c->ssl before calling SSL shutdown.
This commit is contained in:
parent
7739b6073b
commit
8f35d300ed
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user