1
0
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:
Daniel Stenberg 2018-07-04 00:58:39 +02:00
parent 1b76c38904
commit c8373e3dfc
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

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