aboutsummaryrefslogtreecommitdiff
path: root/lib/ftp.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2005-09-16 21:30:08 +0000
committerDaniel Stenberg <daniel@haxx.se>2005-09-16 21:30:08 +0000
commite7093b3ca8f54a9d67a078ce37afdc825c86fdf4 (patch)
tree7eceb12a79f2c7f98f920768abc58e334873e6b5 /lib/ftp.c
parentd0a4104c0cb1c8b4c1e02ae314a1ad4831d37d4a (diff)
keep 'socktype' in the connectdata struct and make sure we use that for all
protocol sockets even if the resolved address may say otherwise
Diffstat (limited to 'lib/ftp.c')
-rw-r--r--lib/ftp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ftp.c b/lib/ftp.c
index 4dc72a496..5c797b938 100644
--- a/lib/ftp.c
+++ b/lib/ftp.c
@@ -858,7 +858,7 @@ static CURLcode ftp_state_use_port(struct connectdata *conn,
* Workaround for AIX5 getaddrinfo() problem (it doesn't set ai_socktype):
*/
if (ai->ai_socktype == 0)
- ai->ai_socktype = SOCK_STREAM;
+ ai->ai_socktype = conn->socktype;
portsock = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol);
if (portsock == CURL_SOCKET_BAD) {