diff options
Diffstat (limited to 'src/event')
| -rw-r--r-- | src/event/quic/ngx_event_quic_ssl.c | 20 |
1 files changed, 6 insertions, 14 deletions
diff --git a/src/event/quic/ngx_event_quic_ssl.c b/src/event/quic/ngx_event_quic_ssl.c index 4e84f8102..705f39f6c 100644 --- a/src/event/quic/ngx_event_quic_ssl.c +++ b/src/event/quic/ngx_event_quic_ssl.c @@ -152,27 +152,19 @@ ngx_quic_cbs_recv_rcd(ngx_ssl_conn_t *ssl_conn, qc = ngx_quic_get_connection(c); ctx = ngx_quic_get_send_ctx(qc, qc->read_level); - for (cl = ctx->crypto.chain; cl; cl = cl->next) { - b = cl->buf; - - if (b->sync) { - /* hole */ + cl = ctx->crypto.chain; - *data = NULL; - *bytes_read = 0; + if (cl == NULL || cl->buf->sync) { + *data = NULL; + *bytes_read = 0; - break; - } + } else { + b = cl->buf; *data = b->pos; *bytes_read = b->last - b->pos; - - break; } - *data = NULL; - *bytes_read = 0; - return 1; } |
