diff options
| author | Sergey Kandaurov <pluknet@nginx.com> | 2020-03-05 15:26:15 +0300 |
|---|---|---|
| committer | Sergey Kandaurov <pluknet@nginx.com> | 2020-03-05 15:26:15 +0300 |
| commit | 12fc8a8bac9bc2835e41e14be67ab18d708e6485 (patch) | |
| tree | b3fe0704fbda37660f10532b90c3c661bd2423e0 | |
| parent | e3e5e21ed53eac32b84e808cb92c0731176a466a (diff) | |
| download | nginx-12fc8a8bac9bc2835e41e14be67ab18d708e6485.tar.gz nginx-12fc8a8bac9bc2835e41e14be67ab18d708e6485.tar.bz2 | |
Fixed ngx_quic_varint_len misuse in the previous change.
| -rw-r--r-- | src/event/ngx_event_quic.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |
