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:
Daniel Stenberg
2011-01-30 01:00:52 +01:00
parent ca015f1a45
commit 24d84da073
6 changed files with 135 additions and 130 deletions

View File

@@ -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;