]> git.kaiwu.me - nginx.git/commit
QUIC: reallocate qc->dcid on retry.
authorRoman Arutyunyan <arut@nginx.com>
Wed, 11 Nov 2020 17:56:02 +0000 (17:56 +0000)
committerRoman Arutyunyan <arut@nginx.com>
Wed, 11 Nov 2020 17:56:02 +0000 (17:56 +0000)
commitdb7fbc4d04d678c16500d4453df88f471ff27c61
tree42d881f3a680135c95c2b1e874eeda1952032fc0
parent2fd31c8959fbae8f069d09b61f339358214e75d1
QUIC: reallocate qc->dcid on retry.

Previously new dcid was generated in the same memory that was allocated for
qc->dcid when creating the QUIC connection.  However this memory was also
referenced by initial_source_connection_id and retry_source_connection_id
transport parameters.  As a result these parameters changed their values after
retry which broke the protocol.
src/event/ngx_event_quic.c