mirror of
https://github.com/moparisthebest/curl
synced 2024-12-22 08:08:50 -05:00
Use Curl_transfer() properly. Fixes the bug Gisle Vanem found!
This commit is contained in:
parent
a13f85fb33
commit
8f0abd31c5
@ -150,7 +150,7 @@ CURLcode Curl_dict(struct connectdata *conn)
|
|||||||
if(result)
|
if(result)
|
||||||
failf(data, "Failed sending DICT request");
|
failf(data, "Failed sending DICT request");
|
||||||
else
|
else
|
||||||
result = Curl_Transfer(conn, sockfd, -1, FALSE, bytecount,
|
result = Curl_Transfer(conn, FIRSTSOCKET, -1, FALSE, bytecount,
|
||||||
-1, NULL); /* no upload */
|
-1, NULL); /* no upload */
|
||||||
if(result)
|
if(result)
|
||||||
return result;
|
return result;
|
||||||
@ -196,7 +196,7 @@ CURLcode Curl_dict(struct connectdata *conn)
|
|||||||
if(result)
|
if(result)
|
||||||
failf(data, "Failed sending DICT request");
|
failf(data, "Failed sending DICT request");
|
||||||
else
|
else
|
||||||
result = Curl_Transfer(conn, sockfd, -1, FALSE, bytecount,
|
result = Curl_Transfer(conn, FIRSTSOCKET, -1, FALSE, bytecount,
|
||||||
-1, NULL); /* no upload */
|
-1, NULL); /* no upload */
|
||||||
|
|
||||||
if(result)
|
if(result)
|
||||||
@ -221,7 +221,7 @@ CURLcode Curl_dict(struct connectdata *conn)
|
|||||||
if(result)
|
if(result)
|
||||||
failf(data, "Failed sending DICT request");
|
failf(data, "Failed sending DICT request");
|
||||||
else
|
else
|
||||||
result = Curl_Transfer(conn, sockfd, -1, FALSE, bytecount,
|
result = Curl_Transfer(conn, FIRSTSOCKET, -1, FALSE, bytecount,
|
||||||
-1, NULL);
|
-1, NULL);
|
||||||
if(result)
|
if(result)
|
||||||
return result;
|
return result;
|
||||||
|
Loading…
Reference in New Issue
Block a user