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

index a1e2e8dded6bee091d6beb6c37d25e88d1366243..62e210eb0f0eda03c03ae8e671d9a868383bc13c 100644 (file)
@@ -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);
        }
 
        /*