pull/595/head
Brad House 1 year ago
parent 001d74bfd9
commit 89b49bc36f
  1. 8
      src/lib/ares_sysconfig.c

@ -748,8 +748,9 @@ static ares_status_t ares__init_sysconfig_watt32(ares_sysconfig_t *sysconfig)
#endif
#if defined(ANDROID) || defined(__ANDROID__)
static ares_status_t
ares__init_sysconfig_android(ares_sysconfig_t *sysconfig) size_t i;
static ares_status_t ares__init_sysconfig_android(ares_sysconfig_t *sysconfig)
{
size_t i;
char **dns_servers;
char *domains;
size_t num_servers;
@ -764,7 +765,8 @@ ares_status_t status = ARES_EFILE;
dns_servers = ares_get_android_server_list(MAX_DNS_PROPERTIES, &num_servers);
if (dns_servers != NULL) {
for (i = 0; i < num_servers; i++) {
status = ares__sconfig_append_fromstr(&sysconfig->sconfig, dns_servers[i]);
status =
ares__sconfig_append_fromstr(&sysconfig->sconfig, dns_servers[i]);
if (status != ARES_SUCCESS) {
return status;
}

Loading…
Cancel
Save