diff options
author | Daniel Stenberg <daniel@haxx.se> | 2005-09-16 21:30:08 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2005-09-16 21:30:08 +0000 |
commit | e7093b3ca8f54a9d67a078ce37afdc825c86fdf4 (patch) | |
tree | 7eceb12a79f2c7f98f920768abc58e334873e6b5 /lib/ftp.c | |
parent | d0a4104c0cb1c8b4c1e02ae314a1ad4831d37d4a (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) { |