aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2005-02-04 23:43:44 +0000
committerDaniel Stenberg <daniel@haxx.se>2005-02-04 23:43:44 +0000
commit29350b363b5b230865b800a4980762592694971b (patch)
tree37218f824b3f207249e37c09c57e5832ee4020b7 /lib
parent83c470a4439e132973a7668a6d6822af07708326 (diff)
Eric Vergnaud found a use of an uninitialized variable
Diffstat (limited to 'lib')
-rw-r--r--lib/ftp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ftp.c b/lib/ftp.c
index e6d2cdfae..ddbd4968f 100644
--- a/lib/ftp.c
+++ b/lib/ftp.c
@@ -1127,7 +1127,7 @@ CURLcode ftp_use_port(struct connectdata *conn)
*
*/
- struct addrinfo hints, *res, *ai;
+ struct addrinfo *res, *ai;
struct sockaddr_storage ss;
socklen_t sslen;
char hbuf[NI_MAXHOST]="";
@@ -1190,7 +1190,7 @@ CURLcode ftp_use_port(struct connectdata *conn)
* Workaround for AIX5 getaddrinfo() problem (it doesn't set ai_socktype):
*/
if (ai->ai_socktype == 0)
- ai->ai_socktype = hints.ai_socktype;
+ ai->ai_socktype = SOCK_STREAM;
portsock = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol);
if (portsock == CURL_SOCKET_BAD) {