From 24d84da0731f680a9b19653a450d4843f190d6b8 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Sun, 30 Jan 2011 01:00:52 +0100 Subject: 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. --- lib/url.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/url.c') diff --git a/lib/url.c b/lib/url.c index 12c70975d..592763f89 100644 --- a/lib/url.c +++ b/lib/url.c @@ -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; -- cgit v1.2.1