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

index 8704b7870d4063802fd709a6a9619c726db21dfd..7d52271cefe1bce6991b6fd3f8a6b28e8c4ef494 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);
        }
 
        /*