commit | 3dc0a579020735771b666234ab726956842e50f7 | [log] [tgz] |
---|---|---|
author | QUICHE team <quiche-dev@google.com> | Wed Apr 14 06:59:09 2021 -0700 |
committer | Copybara-Service <copybara-worker@google.com> | Wed Apr 14 06:59:43 2021 -0700 |
tree | 1b9e6ee6dfdb7c08b8b9c00956a27705f2e1c30b | |
parent | 4b5b4e6187bbf0f7c5c3f89e67808b209a954a4c [diff] |
When binding a quic client's socket, set the addrlen to the exact length of the sockaddr struct being passed in. Previously, this had been passing sizeof(sockaddr_storage) which is strictly larger than sockaddr_in or sockaddr_in6. The kernel typically doesn't care if you set a value larger than the struct being passed down, but some platforms configure dynamic network acls based on intercepted syscalls and _do_ care about the given addrlen. PiperOrigin-RevId: 368421849 Change-Id: I48bbee6a102f756d640d9a8e16c50765139dc931
QUICHE (QUIC, Http/2, Etc) is Google‘s implementation of QUIC and related protocols. It powers Chromium as well as Google’s QUIC servers and some other projects. QUICHE is only supported on little-endian platforms.
Code can be viewed in CodeSearch in Quiche and is imported into Chromium.