Unverified Commit c8373e3d authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

ares: check for NULL in completed-callback

parent 1b76c389
Loading
Loading
Loading
Loading
+10 −8
Original line number Diff line number Diff line
@@ -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