diff options
author | Daniel Stenberg <daniel@haxx.se> | 2011-01-30 01:00:52 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2011-04-25 19:47:16 +0200 |
commit | 24d84da0731f680a9b19653a450d4843f190d6b8 (patch) | |
tree | b6a554ace49210a949d623bf7c97c8564bb9e41d /lib/easy.c | |
parent | ca015f1a45c68aa1d641678cfc13ce0df0c58fe0 (diff) |
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.
Diffstat (limited to 'lib/easy.c')
-rw-r--r-- | lib/easy.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/easy.c b/lib/easy.c index 9ce80d086..cfe7224a4 100644 --- a/lib/easy.c +++ b/lib/easy.c @@ -269,7 +269,7 @@ CURLcode curl_global_init(long flags) idna_init(); #endif - if( Curl_resolver_global_init() != CURLE_OK ) { + if(Curl_resolver_global_init() != CURLE_OK) { DEBUGF(fprintf(stderr, "Error: resolver_global_init failed\n")); return CURLE_FAILED_INIT; } @@ -673,8 +673,9 @@ CURL *curl_easy_duphandle(CURL *incurl) } /* Clone the resolver handle, if present, for the new handle */ - if( Curl_resolver_duphandle(&outcurl->state.resolver, data->state.resolver) != CURLE_OK ) - goto fail; + if( Curl_resolver_duphandle(&outcurl->state.resolver, + data->state.resolver) != CURLE_OK ) + goto fail; Curl_convert_setup(outcurl); |