chiark / gitweb /
Synthesize EAI_NODATA if we delete all the address for the name.
authorRichard Kettlewell <rjk@greenend.org.uk>
Sun, 6 Feb 2011 12:50:39 +0000 (12:50 +0000)
committerRichard Kettlewell <rjk@greenend.org.uk>
Sun, 6 Feb 2011 12:50:39 +0000 (12:50 +0000)
gaise.c

diff --git a/gaise.c b/gaise.c
index ecf962b..e57a6b8 100644 (file)
--- a/gaise.c
+++ b/gaise.c
@@ -36,6 +36,8 @@ int __gaise_getaddrinfo(const char *node, const char *service,
       addrinfo_remove(AF_INET6, res);
     if(getenv("GAISE_REMOVE_IPV4"))
       addrinfo_remove(AF_INET, res);
+    if(*res == NULL)
+      rc = EAI_NODATA;
   }
   return rc;
 }