Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update the copyright year.
[rsync/rsync.git]
/
lib
/
getaddrinfo.c
diff --git
a/lib/getaddrinfo.c
b/lib/getaddrinfo.c
index
0261f78
..
b743287
100644
(file)
--- a/
lib/getaddrinfo.c
+++ b/
lib/getaddrinfo.c
@@
-492,13
+492,10
@@
int getnameinfo(const struct sockaddr *sa, socklen_t salen,
return EAI_FAIL;
}
return EAI_FAIL;
}
- /* We don't support those. */
- if ((node && !(flags & NI_NUMERICHOST))
- || (service && !(flags & NI_NUMERICSERV)))
- return EAI_FAIL;
-
if (node) {
if (node) {
- return gethostnameinfo(sa, node, nodelen, flags);
+ int ret = gethostnameinfo(sa, node, nodelen, flags);
+ if (ret)
+ return ret;
}
if (service) {
}
if (service) {