diff options
| author | Sergey Kandaurov <pluknet@nginx.com> | 2020-10-21 12:03:22 +0100 |
|---|---|---|
| committer | Sergey Kandaurov <pluknet@nginx.com> | 2020-10-21 12:03:22 +0100 |
| commit | fe2c392551ca4b88b8f1ec35f97994928e2303c9 (patch) | |
| tree | a63969ee312ebbb7bdfca62b9ecfb35c2145da74 /src | |
| parent | a47a4400b8201a4c5813fb91f211533c967b6aa4 (diff) | |
| download | nginx-fe2c392551ca4b88b8f1ec35f97994928e2303c9.tar.gz nginx-fe2c392551ca4b88b8f1ec35f97994928e2303c9.tar.bz2 | |
QUIC: simplified ngx_quic_create_long_header().
As seen in the quic-transport draft, which this implementation follows:
Initial packets sent by the server MUST set the Token Length field to zero.
Diffstat (limited to 'src')
| -rw-r--r-- | src/event/ngx_event_quic_transport.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/event/ngx_event_quic_transport.c b/src/event/ngx_event_quic_transport.c index 1bd470f26..cea69ab7a 100644 --- a/src/event/ngx_event_quic_transport.c +++ b/src/event/ngx_event_quic_transport.c @@ -433,7 +433,7 @@ ngx_quic_create_long_header(ngx_quic_header_t *pkt, u_char *out, p = ngx_cpymem(p, pkt->scid.data, pkt->scid.len); if (pkt->level == ssl_encryption_initial) { - ngx_quic_build_int(&p, pkt->token.len); + ngx_quic_build_int(&p, 0); } ngx_quic_build_int(&p, pkt_len + pkt->num_len); |
