[PATCH 02/13] resolv: Add tst-resolv-aliases

Florian Weimer fweimer@redhat.com
Wed Aug 24 13:30:19 GMT 2022


* Siddhesh Poyarekar:

>> +static void
>> +check_cnames_failure (int af, bool do_search, int cnames, int addresses)
>> +{
>> +  char *qname = make_qname (do_search, cnames, addresses);
>> +
>> +  struct hostent *e;
>> +  if (af == AF_UNSPEC)
>> +    e = gethostbyname (qname);
>> +  else
>> +    e = gethostbyname2 (qname, af);
>> +
>> +  if (addresses == 0)
>> +    check_hostent (qname, e, "error: NO_RECOVERY\n"); /* Should be NO_DATA.  */
>
> Could the response be rewritten so that the check could be for NO_DATA
> here?  Or have I misunderstood the comment?

I forgot to respond to this: The comment is likely wrong, I will drop
it.

Thanks,
Florian



More information about the Libc-alpha mailing list