summaryrefslogtreecommitdiffstats
path: root/lib/libfetch/fetch.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libfetch/fetch.c')
-rw-r--r--lib/libfetch/fetch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libfetch/fetch.c b/lib/libfetch/fetch.c
index 9e60938..8f53247 100644
--- a/lib/libfetch/fetch.c
+++ b/lib/libfetch/fetch.c
@@ -213,7 +213,7 @@ fetchConnect(char *host, int port)
sin.sin_port = htons(port);
/* try to connect */
- if ((sd = socket(sin.sin_family, SOCK_STREAM, 0)) < 0)
+ if ((sd = socket(sin.sin_family, SOCK_STREAM, IPPROTO_TCP)) < 0)
return -1;
if (connect(sd, (struct sockaddr *)&sin, sizeof sin) < 0) {
close(sd);
OpenPOWER on IntegriCloud