aboutsummaryrefslogtreecommitdiff
path: root/resolv/tst-resolv-basic.c
AgeCommit message (Collapse)AuthorFilesLines
2018-01-01Update copyright dates with scripts/update-copyrights.Joseph Myers1-1/+1
* All files with FSF copyright notices: Update copyright dates using scripts/update-copyrights. * locale/programs/charmap-kw.h: Regenerated. * locale/programs/locfile-kw.h: Likewise.
2017-09-01getaddrinfo: Fix error handling in gethosts [BZ #21915] [BZ #21922]Florian Weimer1-23/+55
The old code uses errno as the primary indicator for success or failure. This is wrong because errno is only set for specific combinations of the status return value and the h_errno variable.
2017-07-06resolv: Deal with non-deterministic address order in tst-resolv-basicFlorian Weimer1-15/+64
2017-06-24resolv/tst-resolv-basic: Add test cases for bug 21295Florian Weimer1-0/+16
2017-05-11support_format_addrinfo: Fix flags and canonname formattingFlorian Weimer1-4/+67
The address family splitting via format_ai_family made unpredictable the place where the canonname field was printed. This commit adjusts the implementation so that the ai_flags is checked for consistency across the list, and ai_canonname must only be present on the first list element. Tests for AI_CANONNAME are added to resolv/tst-resolv-basic.
2017-04-13resolv: Support an exactly sized buffer in ns_name_pack [BZ #21359]Florian Weimer1-1/+29
This bug did not affect name resolution because those functions indirectly call ns_name_pack with a buffer which is always larger than the generated query packet, even in the case of the longest-possible domain name.
2017-01-01Update copyright dates with scripts/update-copyrights.Joseph Myers1-1/+1
2016-12-31resolv: Add beginnings of a libresolv test suiteFlorian Weimer1-0/+315