projects
/
oweals
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
- drats.
[oweals/busybox.git]
/
libbb
/
xconnect.c
diff --git
a/libbb/xconnect.c
b/libbb/xconnect.c
index 1e5799e516c53ef84a5ced00878ff7d57542fe4c..39052b87b6d584ce29e6fc8aa22d0a10f3910dd5 100644
(file)
--- a/
libbb/xconnect.c
+++ b/
libbb/xconnect.c
@@
-61,8
+61,8
@@
void bb_lookup_host(struct sockaddr_in *s_in, const char *host)
int xconnect(struct sockaddr_in *s_addr)
{
int xconnect(struct sockaddr_in *s_addr)
{
- int s = socket(AF_INET, SOCK_STREAM, 0);
- if (connect(s, (struct sockaddr
_in
*)s_addr, sizeof(struct sockaddr_in)) < 0)
+ int s =
bb_x
socket(AF_INET, SOCK_STREAM, 0);
+ if (connect(s, (struct sockaddr *)s_addr, sizeof(struct sockaddr_in)) < 0)
{
if (ENABLE_FEATURE_CLEAN_UP) close(s);
bb_perror_msg_and_die("Unable to connect to remote host (%s)",
{
if (ENABLE_FEATURE_CLEAN_UP) close(s);
bb_perror_msg_and_die("Unable to connect to remote host (%s)",