]> granicus.if.org Git - curl/commitdiff
Use Curl_transfer() properly. Fixes the bug Gisle Vanem found!
authorDaniel Stenberg <daniel@haxx.se>
Wed, 10 Dec 2003 15:27:59 +0000 (15:27 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 10 Dec 2003 15:27:59 +0000 (15:27 +0000)
lib/dict.c

index 86c864cf59b409e09ce80e396c29a24dabefdc2e..e9308ae8d430ed873a764a03a5fa20da654c44f2 100644 (file)
@@ -150,7 +150,7 @@ CURLcode Curl_dict(struct connectdata *conn)
     if(result)
       failf(data, "Failed sending DICT request");
     else
-      result = Curl_Transfer(conn, sockfd, -1, FALSE, bytecount,
+      result = Curl_Transfer(conn, FIRSTSOCKET, -1, FALSE, bytecount,
                              -1, NULL); /* no upload */      
     if(result)
       return result;
@@ -196,7 +196,7 @@ CURLcode Curl_dict(struct connectdata *conn)
     if(result)
       failf(data, "Failed sending DICT request");
     else
-      result = Curl_Transfer(conn, sockfd, -1, FALSE, bytecount,
+      result = Curl_Transfer(conn, FIRSTSOCKET, -1, FALSE, bytecount,
                              -1, NULL); /* no upload */
     
     if(result)
@@ -221,7 +221,7 @@ CURLcode Curl_dict(struct connectdata *conn)
       if(result)
         failf(data, "Failed sending DICT request");
       else
-        result = Curl_Transfer(conn, sockfd, -1, FALSE, bytecount,
+        result = Curl_Transfer(conn, FIRSTSOCKET, -1, FALSE, bytecount,
                                -1, NULL);
       if(result)
         return result;