Fix for #345, don't use 'true' use 1

pull/354/head
Brad House 5 years ago
parent c4764c2f28
commit 0e80d9298b
  1. 2
      ares_getaddrinfo.c

@ -764,7 +764,7 @@ static int as_is_first(const struct host_query* hquery)
} }
if (*last_char == '.') { if (*last_char == '.') {
/* prevent ARES_EBADNAME for valid FQDN, where ndots < channel->ndots */ /* prevent ARES_EBADNAME for valid FQDN, where ndots < channel->ndots */
return true; return 1;
} }
return ndots >= hquery->channel->ndots; return ndots >= hquery->channel->ndots;
} }

Loading…
Cancel
Save