chiark
/
gitweb
/
~richardk
/
gaise.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
a8a476e
)
Synthesize EAI_NODATA if we delete all the address for the name.
author
Richard Kettlewell
<rjk@greenend.org.uk>
Sun, 6 Feb 2011 12:50:39 +0000 (12:50 +0000)
committer
Richard Kettlewell
<rjk@greenend.org.uk>
Sun, 6 Feb 2011 12:50:39 +0000 (12:50 +0000)
gaise.c
patch
|
blob
|
history
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;
}