]> git.ipfire.org Git - thirdparty/glibc.git/commit
support_format_addrinfo: Fix flags and canonname formatting
authorFlorian Weimer <fweimer@redhat.com>
Thu, 11 May 2017 09:32:16 +0000 (11:32 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Thu, 11 May 2017 09:51:34 +0000 (11:51 +0200)
commit8ec69bb7ecf3ca5edde5b7d9d7d5d3a5f8b6c405
tree7c8875439ed455ff72491a5f73c4099afe83272c
parent46ce8881ade788db56079622f47f648d4aaa003b
support_format_addrinfo: Fix flags and canonname formatting

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.
ChangeLog
resolv/tst-resolv-basic.c
support/support_format_addrinfo.c