aboutsummaryrefslogtreecommitdiff
path: root/libbb
diff options
context:
space:
mode:
Diffstat (limited to 'libbb')
-rw-r--r--libbb/xconnect.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libbb/xconnect.c b/libbb/xconnect.c
index 81a2b048f..b6848ea6f 100644
--- a/libbb/xconnect.c
+++ b/libbb/xconnect.c
@@ -223,7 +223,7 @@ IF_NOT_FEATURE_IPV6(sa_family_t af = AF_INET;)
223 } 223 }
224 224
225 /* Next two if blocks allow to skip getaddrinfo() 225 /* Next two if blocks allow to skip getaddrinfo()
226 * in case host is a numeric IP(v6) address, 226 * in case host name is a numeric IP(v6) address.
227 * getaddrinfo() initializes DNS resolution machinery, 227 * getaddrinfo() initializes DNS resolution machinery,
228 * scans network config and such - tens of syscalls. 228 * scans network config and such - tens of syscalls.
229 */ 229 */
@@ -283,7 +283,7 @@ IF_NOT_FEATURE_IPV6(sa_family_t af = AF_INET;)
283 r->len = used_res->ai_addrlen; 283 r->len = used_res->ai_addrlen;
284 memcpy(&r->u.sa, used_res->ai_addr, used_res->ai_addrlen); 284 memcpy(&r->u.sa, used_res->ai_addr, used_res->ai_addrlen);
285 285
286 IF_FEATURE_IPV6(set_port:) 286 set_port:
287 set_nport(r, htons(port)); 287 set_nport(r, htons(port));
288 ret: 288 ret:
289 freeaddrinfo(result); 289 freeaddrinfo(result);