s4: Fix result check for getaddrinfo()
commita3ebe54761d1c0d1c99edaf6e221612c23280bf2
authorKamen Mazdrashki <kamen.mazdrashki@postpath.com>
Wed, 6 Jan 2010 11:40:33 +0000 (6 13:40 +0200)
committerKarolin Seeger <kseeger@samba.org>
Thu, 7 Jan 2010 09:51:26 +0000 (7 10:51 +0100)
treee6f23e5e861bf68b4a496de14484d78637a0d38a
parent25e126d6b462672d1150d2de25355d7e5f328492
s4: Fix result check for getaddrinfo()

I think this completes commit 50feca550eed7828198b7c0fc5f0e5ddc863313d.
Now result should be handled correctly both for systems that
support EAI_NODATA but returns EAI_NONAME (as my Ubuntu 9.x)
and systems that doesn't support EAI_NODATA at all.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
(cherry picked from commit a2044b9a61d9c8ca66067b286ad9bc01cf0490b9)
(cherry picked from commit dd35252f4dbe3dc36b35c21915bf959524dc4930)
source4/libcli/resolve/dns_ex.c