mirror of
https://github.com/nginx/nginx.git
synced 2025-01-21 19:53:00 +08: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
@ -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…
Reference in New Issue
Block a user