From: Sergey Kandaurov Date: Thu, 5 Mar 2020 12:26:15 +0000 (+0300) Subject: Fixed ngx_quic_varint_len misuse in the previous change. X-Git-Tag: release-1.25.0~4^2~917 X-Git-Url: http://git.kaiwu.me/postgresql/log/contrib/postgres_fdw/postgres_fdw.c?a=commitdiff_plain;h=12fc8a8bac9bc2835e41e14be67ab18d708e6485;p=nginx.git Fixed ngx_quic_varint_len misuse in the previous change. --- diff --git a/src/event/ngx_event_quic.c b/src/event/ngx_event_quic.c index f3035dd70..5bd423f45 100644 --- a/src/event/ngx_event_quic.c +++ b/src/event/ngx_event_quic.c @@ -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;