Mercurial > hg > nginx-quic
comparison src/event/ngx_event_quic.c @ 7682:0aec63f50c29 quic
Added check for initialized c->ssl before calling SSL shutdown.
author | Vladimir Homutov <vl@nginx.com> |
---|---|
date | Fri, 13 Mar 2020 18:55:58 +0300 |
parents | 38c0898b6df7 |
children | a5a1b3fad834 |
comparison
equal
deleted
inserted
replaced
7681:38c0898b6df7 | 7682:0aec63f50c29 |
---|---|
476 /* XXX wait for all streams to close */ | 476 /* XXX wait for all streams to close */ |
477 | 477 |
478 ngx_log_debug1(NGX_LOG_DEBUG_EVENT, c->log, 0, | 478 ngx_log_debug1(NGX_LOG_DEBUG_EVENT, c->log, 0, |
479 "close quic connection: %d", c->fd); | 479 "close quic connection: %d", c->fd); |
480 | 480 |
481 (void) ngx_ssl_shutdown(c); | 481 if (c->ssl) { |
482 (void) ngx_ssl_shutdown(c); | |
483 } | |
482 | 484 |
483 #if (NGX_STAT_STUB) | 485 #if (NGX_STAT_STUB) |
484 (void) ngx_atomic_fetch_add(ngx_stat_active, -1); | 486 (void) ngx_atomic_fetch_add(ngx_stat_active, -1); |
485 #endif | 487 #endif |
486 | 488 |