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:
Vladimir Homutov 2021-03-30 14:33:43 +03:00
parent 6b70513bd8
commit d9e4f8e288

View File

@ -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;