Added check for initialized c->ssl before calling SSL shutdown.

This commit is contained in:
Vladimir Homutov 2020-03-13 18:55:58 +03:00
parent 7739b6073b
commit 8f35d300ed

View File

@ -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);