mirror of
https://github.com/RsyncProject/rsync.git
synced 2026-03-29 19:51:16 -04:00
Switch from inet_aton() to inet_pton() (since we supply a compatibility
function for the latter, it will always exist).
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user