mirror of
https://github.com/curl/curl.git
synced 2026-07-12 06:27:15 +03:00
Extracting the CURLINFO_PRIVATE pointer makes no point since nothing set
it. This caused a segfault in some fprintf() implementations. Like on Solaris.
This commit is contained in:
parent
cf613fdba4
commit
9e241864e3
1 changed files with 2 additions and 4 deletions
|
|
@ -87,11 +87,9 @@ static int loop(CURLM *cm, const char* url, const char* userpwd,
|
|||
|
||||
while ((msg = curl_multi_info_read(cm, &Q))) {
|
||||
if (msg->msg == CURLMSG_DONE) {
|
||||
char *usedurl;
|
||||
CURL *e = msg->easy_handle;
|
||||
curl_easy_getinfo(msg->easy_handle, CURLINFO_PRIVATE, &usedurl);
|
||||
fprintf(stderr, "R: %d - %s <%s>\n", (int)msg->data.result,
|
||||
curl_easy_strerror(msg->data.result), usedurl);
|
||||
fprintf(stderr, "R: %d - %s\n", (int)msg->data.result,
|
||||
curl_easy_strerror(msg->data.result));
|
||||
curl_multi_remove_handle(cm, e);
|
||||
curl_easy_cleanup(e);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue