Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | resolv: Support binary labels in test framework | Florian Weimer | 2018-01-08 | 1 | -0/+120 |
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. |