asynch resolvers: cleanup
Fixed indents, coding conventions and white space edits. Modified the c-ares completion callback function to again NOT read the conn data when the ares handle is being taken down as then it may have been freed already.
This commit is contained in:
@@ -778,7 +778,8 @@ CURLcode Curl_open(struct SessionHandle **curl)
|
||||
|
||||
data->magic = CURLEASY_MAGIC_NUMBER;
|
||||
|
||||
if( (status=Curl_resolver_init(&data->state.resolver)) != CURLE_OK ) {
|
||||
status = Curl_resolver_init(&data->state.resolver);
|
||||
if(status) {
|
||||
DEBUGF(fprintf(stderr, "Error: resolver_init failed\n"));
|
||||
free(data);
|
||||
return status;
|
||||
|
Reference in New Issue
Block a user