The second CNAME record optionally generated by the response function
used the question name, not the redirected name from the first CNAME.
This breaks the chain and results in failures of these IDNA tests if
CNAME owner names are checked as expected (which the current
implementation does not do).
}
if (with_idn_cname)
{
+ const char *previous_name = next_name;
next_name = ANDERES_NAEMCHEN_IDNA ".example";
- resolv_response_open_record (b, qname, C_IN, T_CNAME, 0);
+ resolv_response_open_record (b, previous_name, C_IN, T_CNAME, 0);
resolv_response_add_name (b, next_name);
resolv_response_close_record (b);
}