diff --git a/lib/dns/name.c b/lib/dns/name.c index a1e2e8dded6bee091d6beb6c37d25e88d1366243..62e210eb0f0eda03c03ae8e671d9a868383bc13c 100644 --- a/lib/dns/name.c +++ b/lib/dns/name.c @@ -2118,12 +2118,7 @@ dns_name_concatenate(dns_name_t *prefix, dns_name_t *suffix, dns_name_t *name, if (copy_suffix) { if ((suffix->attributes & DNS_NAMEATTR_ABSOLUTE) != 0) absolute = ISC_TRUE; - if (suffix == name && suffix->buffer == target) - memmove(ndata + prefix_length, suffix->ndata, - suffix->length); - else - memmove(ndata + prefix_length, suffix->ndata, - suffix->length); + memmove(ndata + prefix_length, suffix->ndata, suffix->length); } /*