diff options
author | Florian Weimer <fweimer@redhat.com> | 2017-05-11 11:32:16 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2018-01-04 11:45:25 +0100 |
commit | d3f885d7ea9e8a8aa142ccd69e6f85c1a4a70033 (patch) | |
tree | 0e8fc1a0e7d6b3df41890db3703a9f98eeb1e8a3 /nscd/getsrvbynm_r.c | |
parent | d8bda0713bd898e9f962cee6d4e3d225441ef5a3 (diff) | |
download | glibc-d3f885d7ea9e8a8aa142ccd69e6f85c1a4a70033.tar.gz glibc-d3f885d7ea9e8a8aa142ccd69e6f85c1a4a70033.tar.xz glibc-d3f885d7ea9e8a8aa142ccd69e6f85c1a4a70033.zip |
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. (cherry picked from commit 8ec69bb7ecf3ca5edde5b7d9d7d5d3a5f8b6c405)
Diffstat (limited to 'nscd/getsrvbynm_r.c')
0 files changed, 0 insertions, 0 deletions