aboutsummaryrefslogtreecommitdiff
path: root/resolv
diff options
context:
space:
mode:
Diffstat (limited to 'resolv')
-rw-r--r--resolv/tst-resolv-ai_idn-common.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/resolv/tst-resolv-ai_idn-common.c b/resolv/tst-resolv-ai_idn-common.c
index 9e8ed76..97eb617 100644
--- a/resolv/tst-resolv-ai_idn-common.c
+++ b/resolv/tst-resolv-ai_idn-common.c
@@ -219,8 +219,9 @@ response (const struct resolv_response_context *ctx,
}
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);
}