Mercurial > hg > nginx
comparison src/event/ngx_event_quic.c @ 8192:fb0879c65650 quic
Fixed ngx_quic_varint_len misuse in the previous change.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Thu, 05 Mar 2020 15:26:15 +0300 |
parents | 7bd7c4e24951 |
children | 4355efde26d8 |
comparison
equal
deleted
inserted
replaced
8191:7bd7c4e24951 | 8192:fb0879c65650 |
---|---|
349 ngx_quic_create_crypto(u_char *p, ngx_quic_crypto_frame_t *crypto) | 349 ngx_quic_create_crypto(u_char *p, ngx_quic_crypto_frame_t *crypto) |
350 { | 350 { |
351 u_char *start; | 351 u_char *start; |
352 | 352 |
353 if (p == NULL) { | 353 if (p == NULL) { |
354 return 3 + ngx_quic_varint_len(crypto->len) + crypto->len; | 354 return 2 + ngx_quic_varint_len(crypto->len) + crypto->len; |
355 } | 355 } |
356 | 356 |
357 start = p; | 357 start = p; |
358 | 358 |
359 ngx_quic_build_int(&p, NGX_QUIC_FT_CRYPTO); | 359 ngx_quic_build_int(&p, NGX_QUIC_FT_CRYPTO); |