From: Vladimir Homutov Date: Fri, 13 Mar 2020 15:55:58 +0000 (+0300) Subject: Added check for initialized c->ssl before calling SSL shutdown. X-Git-Tag: release-1.25.0~4^2~893 X-Git-Url: http://git.kaiwu.me/postgresql/log/contrib/postgres_fdw/postgres_fdw.c?a=commitdiff_plain;h=8f35d300ed0abfd1a0988181de182fe042a6b4e2;p=nginx.git Added check for initialized c->ssl before calling SSL shutdown. --- diff --git a/src/event/ngx_event_quic.c b/src/event/ngx_event_quic.c index 248cc9087..f290cbe95 100644 --- a/src/event/ngx_event_quic.c +++ b/src/event/ngx_event_quic.c @@ -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);