aboutsummaryrefslogtreecommitdiff
path: root/lib/dict.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2003-11-24 07:15:37 +0000
committerDaniel Stenberg <daniel@haxx.se>2003-11-24 07:15:37 +0000
commit1e98727c552ced5f8c7587f64ab69c6eaab743dd (patch)
tree1b685977d873fadecb1a468fc2a317ae026867b9 /lib/dict.c
parent1c700b5a5cd9cf9fb9d2887aa233e065e4e450ee (diff)
FTPS support added as RFC2228 and the murray-ftp-auth-ssl draft describe it
Diffstat (limited to 'lib/dict.c')
-rw-r--r--lib/dict.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/lib/dict.c b/lib/dict.c
index 1c85a1081..86c864cf5 100644
--- a/lib/dict.c
+++ b/lib/dict.c
@@ -89,6 +89,7 @@ CURLcode Curl_dict(struct connectdata *conn)
by RFC 2229 */
CURLcode result=CURLE_OK;
struct SessionHandle *data=conn->data;
+ int sockfd = conn->sock[FIRSTSOCKET];
char *path = conn->path;
long *bytecount = &conn->bytecount;
@@ -134,7 +135,7 @@ CURLcode Curl_dict(struct connectdata *conn)
nth = atoi(nthdef);
}
- result = Curl_sendf(conn->firstsocket, conn,
+ result = Curl_sendf(sockfd, conn,
"CLIENT " LIBCURL_NAME " " LIBCURL_VERSION "\n"
"MATCH "
"%s " /* database */
@@ -149,7 +150,7 @@ CURLcode Curl_dict(struct connectdata *conn)
if(result)
failf(data, "Failed sending DICT request");
else
- result = Curl_Transfer(conn, conn->firstsocket, -1, FALSE, bytecount,
+ result = Curl_Transfer(conn, sockfd, -1, FALSE, bytecount,
-1, NULL); /* no upload */
if(result)
return result;
@@ -184,7 +185,7 @@ CURLcode Curl_dict(struct connectdata *conn)
nth = atoi(nthdef);
}
- result = Curl_sendf(conn->firstsocket, conn,
+ result = Curl_sendf(sockfd, conn,
"CLIENT " LIBCURL_NAME " " LIBCURL_VERSION "\n"
"DEFINE "
"%s " /* database */
@@ -195,7 +196,7 @@ CURLcode Curl_dict(struct connectdata *conn)
if(result)
failf(data, "Failed sending DICT request");
else
- result = Curl_Transfer(conn, conn->firstsocket, -1, FALSE, bytecount,
+ result = Curl_Transfer(conn, sockfd, -1, FALSE, bytecount,
-1, NULL); /* no upload */
if(result)
@@ -213,14 +214,14 @@ CURLcode Curl_dict(struct connectdata *conn)
if (ppath[i] == ':')
ppath[i] = ' ';
}
- result = Curl_sendf(conn->firstsocket, conn,
+ result = Curl_sendf(sockfd, conn,
"CLIENT " LIBCURL_NAME " " LIBCURL_VERSION "\n"
"%s\n"
"QUIT\n", ppath);
if(result)
failf(data, "Failed sending DICT request");
else
- result = Curl_Transfer(conn, conn->firstsocket, -1, FALSE, bytecount,
+ result = Curl_Transfer(conn, sockfd, -1, FALSE, bytecount,
-1, NULL);
if(result)
return result;