QUIC: always populate ngx_quic_cbs_recv_rcd() output arguments

Although uninitialized values aren't used in practice due to the
nature of the OpenSSL code flow, this violates the API contract.

Reported by lukefr09 on GitHub.
This commit is contained in:
Sergey Kandaurov 2026-04-15 22:12:28 +04:00 committed by Sergey Kandaurov
parent abc72c5a57
commit 4dd7ec9ae4

View file

@ -158,6 +158,7 @@ ngx_quic_cbs_recv_rcd(ngx_ssl_conn_t *ssl_conn,
if (b->sync) {
/* hole */
*data = NULL;
*bytes_read = 0;
break;
@ -169,6 +170,9 @@ ngx_quic_cbs_recv_rcd(ngx_ssl_conn_t *ssl_conn,
break;
}
*data = NULL;
*bytes_read = 0;
return 1;
}