diff --git a/src/event/ngx_event_quic.c b/src/event/ngx_event_quic.c index d913f4f43..726775122 100644 --- a/src/event/ngx_event_quic.c +++ b/src/event/ngx_event_quic.c @@ -967,7 +967,6 @@ ngx_quic_handle_crypto_frame(ngx_connection_t *c, ngx_quic_header_t *pkt, int sslerr; ssize_t n; ngx_ssl_conn_t *ssl_conn; - ngx_quic_frame_t *frame; if (f->offset != 0x0) { ngx_log_error(NGX_LOG_INFO, c->log, 0, @@ -1014,6 +1013,10 @@ ngx_quic_handle_crypto_frame(ngx_connection_t *c, ngx_quic_header_t *pkt, ngx_log_debug0(NGX_LOG_DEBUG_EVENT, c->log, 0, "handshake completed successfully"); +#if (NGX_QUIC_DRAFT_VERSION >= 27) + { + ngx_quic_frame_t *frame; + frame = ngx_pcalloc(c->pool, sizeof(ngx_quic_frame_t)); if (frame == NULL) { return NGX_ERROR; @@ -1024,6 +1027,8 @@ ngx_quic_handle_crypto_frame(ngx_connection_t *c, ngx_quic_header_t *pkt, frame->type = NGX_QUIC_FT_HANDSHAKE_DONE; ngx_sprintf(frame->info, "HANDSHAKE DONE on handshake completed"); ngx_quic_queue_frame(c->quic, frame); + } +#endif } ngx_log_debug2(NGX_LOG_DEBUG_EVENT, c->log, 0,