mirror of
https://github.com/nginx/nginx.git
synced 2026-08-27 04:07:18 +00:00
QUIC: fixed udp buffer initialization.
The start field is used to check if the QUIC packet is first in the datagram. This fixes stateless reset detection.
This commit is contained in:
parent
6b70513bd8
commit
d9e4f8e288
1 changed files with 2 additions and 0 deletions
|
|
@ -279,6 +279,8 @@ ngx_event_recvmsg(ngx_event_t *ev)
|
|||
|
||||
buf.pos = buffer;
|
||||
buf.last = buffer + n;
|
||||
buf.start = buf.pos;
|
||||
buf.end = buffer + sizeof(buffer);
|
||||
|
||||
rev = c->read;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue