summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
8f73c8a)
function for the latter, it will always exist).
res);
} else if (hints.ai_flags & AI_NUMERICHOST) {
struct in_addr ip;
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 getaddr_info_single_addr(service,
ntohl(ip.s_addr),
&hints,
return getaddr_info_single_addr(service,
ntohl(ip.s_addr),
&hints,