Since the original `conn' pointer was used after the `connectdata' it
points to has been closed/cleaned up by Curl_reconnect_request it caused
a crash. We must make sure to use the newly created connection instead!
URL: http://curl.haxx.se/mail/lib-2010-12/0202.html
if(result == CURLE_OK) {
/* ... finally back to actually retry the DO phase */
+ conn = *connp; /* re-assign conn since Curl_reconnect_request
+ creates a new connection */
result = conn->handler->do_it(conn, done);
}
}
- else {
+ else
return result;
- }
}
if((result == CURLE_OK) && *done)