diff options
| author | Vladimir Homutov <vl@nginx.com> | 2020-03-13 18:55:58 +0300 |
|---|---|---|
| committer | Vladimir Homutov <vl@nginx.com> | 2020-03-13 18:55:58 +0300 |
| commit | 8f35d300ed0abfd1a0988181de182fe042a6b4e2 (patch) | |
| tree | 9503b0d551dd252726c6ab4989345996660821be /src/event/ngx_event_quic.c | |
| parent | 7739b6073b11086d9a3dc4b9744418070e182c33 (diff) | |
| download | nginx-8f35d300ed0abfd1a0988181de182fe042a6b4e2.tar.gz nginx-8f35d300ed0abfd1a0988181de182fe042a6b4e2.tar.bz2 | |
Added check for initialized c->ssl before calling SSL shutdown.
Diffstat (limited to 'src/event/ngx_event_quic.c')
| -rw-r--r-- | src/event/ngx_event_quic.c | 4 |
1 files changed, 3 insertions, 1 deletions
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); |
