]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
easy: remove dead code
authorJay Satiro <raysatiro@yahoo.com>
Sun, 9 Feb 2020 07:41:33 +0000 (02:41 -0500)
committerJay Satiro <raysatiro@yahoo.com>
Wed, 12 Feb 2020 21:54:51 +0000 (16:54 -0500)
multi is already assigned to data->multi by curl_multi_add_handle.

Closes https://github.com/curl/curl/pull/4900

lib/easy.c

index 98646c9c490aacabc87bf05ff4afbd3c8b23dbed..56ba2b2bd9f19ea79f3b9df5f2bbd37c19134b54 100644 (file)
@@ -690,10 +690,6 @@ static CURLcode easy_perform(struct Curl_easy *data, bool events)
 
   sigpipe_ignore(data, &pipe_st);
 
-  /* assign this after curl_multi_add_handle() since that function checks for
-     it and rejects this handle otherwise */
-  data->multi = multi;
-
   /* run the transfer */
   result = events ? easy_events(multi) : easy_transfer(multi);