From 9758be3259bde318110aec0d1571ebfc2eea7524 Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Thu, 11 Jan 2018 09:51:52 +1100 Subject: [PATCH] 4862. [bug] The rdata flags for RRSIG was not being properly set when constructing a rdataslab. [RT #46978] (cherry picked from commit 7befb67af42a6e6088d91229ab5fcb8d64db0a3a) --- CHANGES | 3 +++ lib/dns/rdataslab.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index 268721af84..5c8362280b 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,6 @@ +4862. [bug] The rdata flags for RRSIG was not being properly set + when constructing a rdataslab. [RT #46978] + 4861. [bug] The isc_crc64 unit test was not endian independent. [RT #46973] diff --git a/lib/dns/rdataslab.c b/lib/dns/rdataslab.c index 1fe754e1dd..97e3259a01 100644 --- a/lib/dns/rdataslab.c +++ b/lib/dns/rdataslab.c @@ -329,7 +329,7 @@ dns_rdataslab_fromrdataset(dns_rdataset_t *rdataset, isc_mem_t *mctx, * Store the per RR meta data. */ if (rdataset->type == dns_rdatatype_rrsig) { - *rawbuf++ |= (x[i].rdata.flags & DNS_RDATA_OFFLINE) ? + *rawbuf++ = (x[i].rdata.flags & DNS_RDATA_OFFLINE) ? DNS_RDATASLAB_OFFLINE : 0; } memmove(rawbuf, x[i].rdata.data, x[i].rdata.length);