Return EAI_AGAIN for AF_UNSPEC when herrno is TRY_AGAIN (BZ #16849)
authorSiddhesh Poyarekar <siddhesh@redhat.com>
Thu, 15 May 2014 07:03:11 +0000 (12:33 +0530)
committerSiddhesh Poyarekar <siddhesh@redhat.com>
Thu, 15 May 2014 07:03:11 +0000 (12:33 +0530)
commitcf26a0cb6a0bbaca46a01ddad6662e5e5159a32a
treee35a017c56bf53210467f323f037436b3cc9f5ab
parenta5d87b3db4f40a0f07e41f1986ac7f330743a0e7
Return EAI_AGAIN for AF_UNSPEC when herrno is TRY_AGAIN (BZ #16849)

getaddrinfo correctly returns EAI_AGAIN for AF_INET and AF_INET6
queries.  For AF_UNSPEC however, an older change
(a682a1bf553b1efe4dbb03207fece5b719cec482) broke the check and due to
that the returned error was EAI_NONAME.

This patch fixes the check so that a non-authoritative not-found is
returned as EAI_AGAIN to the user instead of EAI_NONAME.
ChangeLog
NEWS
sysdeps/posix/getaddrinfo.c