diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/asyn-ares.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/asyn-ares.c b/lib/asyn-ares.c index 9ee307beb..839fabb86 100644 --- a/lib/asyn-ares.c +++ b/lib/asyn-ares.c @@ -206,7 +206,8 @@ static void destroy_async_data(struct Curl_async *async); */ void Curl_resolver_cancel(struct Curl_easy *data) { - if(data && data->state.async.resolver) + DEBUGASSERT(data); + if(data->state.async.resolver) ares_cancel((ares_channel)data->state.async.resolver); destroy_async_data(&data->state.async); } |