ndots:0 in system config not being honored due to bad sanity check

pull/786/head
Brad House 7 months ago
parent b669c2f323
commit 852a60a6ad
  1. 2
      src/lib/ares_sysconfig.c

@ -1039,7 +1039,7 @@ static ares_status_t ares_sysconfig_apply(ares_channel_t *channel,
channel->nsort = sysconfig->nsortlist;
}
if (sysconfig->ndots && !(channel->optmask & ARES_OPT_NDOTS)) {
if (!(channel->optmask & ARES_OPT_NDOTS)) {
channel->ndots = sysconfig->ndots;
}

Loading…
Cancel
Save