mirror of
https://github.com/nginx/nginx.git
synced 2026-10-23 20:44:41 +00:00
Added check for initialized c->ssl before calling SSL shutdown.
This commit is contained in:
parent
7739b6073b
commit
8f35d300ed
1 changed files with 3 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue