mirror of
https://sourceware.org/git/glibc.git
synced 2025-12-06 12:01:08 +03:00
The old implementation based on hsearch_r used an ad-hoc C string encoding and produced an incorrect format on the wire for domain names which contained bytes which needed escaping when printed. This commit switches to ns_name_pton for the wire format conversion (now that we have separate tests for it) and uses a tsearch tree with a suitable comparison function to locate compression targets.
4.0 KiB
4.0 KiB