]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
[v9_8] remove unnecessary test in name.c
authorEvan Hunt <each@isc.org>
Tue, 21 Jan 2014 01:59:23 +0000 (17:59 -0800)
committerEvan Hunt <each@isc.org>
Tue, 21 Jan 2014 01:59:23 +0000 (17:59 -0800)
lib/dns/name.c

index fd768d0f9b826a4922191976dba62247fb7146d2..9b24ed3638042bb176e05823accc6fb4d0702bd4 100644 (file)
@@ -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);
        }
 
        /*