From a40b8e025a8940e47e8809bbe7fcaaf5234c03da Mon Sep 17 00:00:00 2001 From: Evan Hunt Date: Mon, 20 Jan 2014 17:58:47 -0800 Subject: [PATCH] [master] remove unnecessary test in name.c --- lib/dns/name.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/lib/dns/name.c b/lib/dns/name.c index a1e2e8dded..62e210eb0f 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); } /*