0
Files
src/net/socket
Matt Menke d94017bfad Fix net_socks_client_socket_fuzzer.
It was incorrectly returning an IPv6 result to IPv4-only lookups.

Also fix some brokenness/weirdness in MockHostResolver. In particular:

1)  When FixupAddressList() modified the returned address list, the
original, non-fixed up address list was added to the cache.
2)  If a result returning IPv6 addresses matched an IPv4 only lookup,
FixupAddressList() would eat the address, resulting in an empty
address list, but the resolution would end in "OK".

Bug: 1264792
Change-Id: I8954b8f1bdd7f8bf5a628dad1447f0166f55b244
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3252026
Reviewed-by: Eric Orth <ericorth@chromium.org>
Commit-Queue: Matt Menke <mmenke@chromium.org>
Cr-Commit-Position: refs/heads/main@{#936983}
2021-11-01 19:14:54 +00:00
..