diff --git a/lib/dns/rdataset.c b/lib/dns/rdataset.c index e563963289..495787518f 100644 --- a/lib/dns/rdataset.c +++ b/lib/dns/rdataset.c @@ -466,8 +466,8 @@ towiresorted(dns_rdataset_t *rdataset, const dns_name_t *owner_name, dns_name_copy(owner_name, name, NULL); dns_rdataset_getownercase(rdataset, name); - if ((owner_name->attributes & DNS_NAMEATTR_NOCOMPRESS) != 0) - name->attributes |= DNS_NAMEATTR_NOCOMPRESS; + name->attributes |= owner_name->attributes & + DNS_NAMEATTR_NOCOMPRESS; do { /*