diff options
| author | Vladimir Homutov <vl@nginx.com> | 2022-07-27 17:31:16 +0400 |
|---|---|---|
| committer | Vladimir Homutov <vl@nginx.com> | 2022-07-27 17:31:16 +0400 |
| commit | 664cb29f5240768988cfa02834bebfddeb32cfc9 (patch) | |
| tree | 17d3857a459cce9af01c1ea80884920a050986fc /src/event/quic/ngx_event_quic_output.c | |
| parent | 93c21be4d6184842b20541be190c630ec042b66a (diff) | |
| download | nginx-664cb29f5240768988cfa02834bebfddeb32cfc9.tar.gz nginx-664cb29f5240768988cfa02834bebfddeb32cfc9.tar.bz2 | |
QUIC: removed ngx_quic_keys_new().
The ngx_quic_keys_t structure is now exposed.
Diffstat (limited to '')
| -rw-r--r-- | src/event/quic/ngx_event_quic_output.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/event/quic/ngx_event_quic_output.c b/src/event/quic/ngx_event_quic_output.c index 720b8fccc..c656c527e 100644 --- a/src/event/quic/ngx_event_quic_output.c +++ b/src/event/quic/ngx_event_quic_output.c @@ -928,6 +928,7 @@ ngx_quic_send_early_cc(ngx_connection_t *c, ngx_quic_header_t *inpkt, { ssize_t len; ngx_str_t res; + ngx_quic_keys_t keys; ngx_quic_frame_t frame; ngx_quic_header_t pkt; @@ -956,10 +957,9 @@ ngx_quic_send_early_cc(ngx_connection_t *c, ngx_quic_header_t *inpkt, return NGX_ERROR; } - pkt.keys = ngx_quic_keys_new(c->pool); - if (pkt.keys == NULL) { - return NGX_ERROR; - } + ngx_memzero(&keys, sizeof(ngx_quic_keys_t)); + + pkt.keys = &keys; if (ngx_quic_keys_set_initial_secret(pkt.keys, &inpkt->dcid, c->log) != NGX_OK) |
