mirror of
https://github.com/moparisthebest/curl
synced 2024-11-12 04:25:08 -05:00
ares: check for NULL in completed-callback
This commit is contained in:
parent
1b76c38904
commit
c8373e3dfc
@ -475,6 +475,7 @@ static void query_completed_cb(void *arg, /* (struct connectdata *) */
|
||||
return;
|
||||
|
||||
res = (struct ResolverResults *)conn->async.os_specific;
|
||||
if(res) {
|
||||
res->num_pending--;
|
||||
|
||||
if(CURL_ASYNC_SUCCESS == status) {
|
||||
@ -487,6 +488,7 @@ static void query_completed_cb(void *arg, /* (struct connectdata *) */
|
||||
if(res->last_status != ARES_SUCCESS)
|
||||
res->last_status = status;
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Curl_resolver_getaddrinfo() - when using ares
|
||||
|
Loading…
Reference in New Issue
Block a user