Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8f73c8a
)
Switch from inet_aton() to inet_pton() (since we supply a compatibility
author
Wayne Davison
<wayned@samba.org>
Thu, 14 May 2009 18:22:37 +0000
(11:22 -0700)
committer
Wayne Davison
<wayned@samba.org>
Thu, 14 May 2009 18:22:37 +0000
(11:22 -0700)
function for the latter, it will always exist).
lib/getaddrinfo.c
patch
|
blob
|
blame
|
history
diff --git
a/lib/getaddrinfo.c
b/lib/getaddrinfo.c
index
b743287
..
96d7a2b
100644
(file)
--- a/
lib/getaddrinfo.c
+++ b/
lib/getaddrinfo.c
@@
-295,9
+295,8
@@
int getaddrinfo(const char *node,
res);
} else if (hints.ai_flags & AI_NUMERICHOST) {
struct in_addr ip;
- if (
!inet_aton(node, &ip)) {
+ if (
inet_pton(AF_INET, node, &ip) <= 0)
return EAI_FAIL;
- }
return getaddr_info_single_addr(service,
ntohl(ip.s_addr),
&hints,