mirror of
https://github.com/nginx/nginx.git
synced 2026-05-13 09:36:42 +00:00
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:
parent
abc72c5a57
commit
4dd7ec9ae4
1 changed files with 4 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue