From 571c5eeb19150905ac026c4b3ed9bceadfbb20d1 Mon Sep 17 00:00:00 2001 From: Evan Hunt Date: Mon, 20 Jan 2014 17:59:14 -0800 Subject: [PATCH] [v9_9] 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 fd768d0f9b..9b24ed3638 100644 --- a/lib/dns/name.c +++ b/lib/dns/name.c @@ -2078,12 +2078,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); } /*