mirror of
https://github.com/nginx/nginx.git
synced 2025-06-24 23:43:06 +08:00
Fixed ngx_quic_varint_len misuse in the previous change.
This commit is contained in:
parent
e3e5e21ed5
commit
12fc8a8bac
@ -351,7 +351,7 @@ ngx_quic_create_crypto(u_char *p, ngx_quic_crypto_frame_t *crypto)
|
||||
u_char *start;
|
||||
|
||||
if (p == NULL) {
|
||||
return 3 + ngx_quic_varint_len(crypto->len) + crypto->len;
|
||||
return 2 + ngx_quic_varint_len(crypto->len) + crypto->len;
|
||||
}
|
||||
|
||||
start = p;
|
||||
|
Loading…
Reference in New Issue
Block a user