Please sign in to comment.
dns: fix TTL value for AAAA replies to `resolveAny()`
We were previously reading from the wrong offset, namely the one into the final results array, not the one for the AAAA results itself, which could have lead to reading uninitialized or out-of-bounds data. Also, adjust the test accordingly; TTL values are not modified by c-ares, but are only exposed for a subset of all DNS record types. PR-URL: #25187 Reviewed-By: Luigi Pinca <email@example.com> Reviewed-By: James M Snell <firstname.lastname@example.org> Reviewed-By: Khaidi Chu <email@example.com> Reviewed-By: Ben Noordhuis <firstname.lastname@example.org> Reviewed-By: Ruben Bridgewater <email@example.com>
- Loading branch information...
Showing with 12 additions and 5 deletions.