]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
4862. [bug] The rdata flags for RRSIG was not being properly set
authorMark Andrews <marka@isc.org>
Wed, 10 Jan 2018 22:51:52 +0000 (09:51 +1100)
committerMark Andrews <marka@isc.org>
Wed, 10 Jan 2018 22:56:40 +0000 (09:56 +1100)
                        when constructing a rdataslab. [RT #46978]

(cherry picked from commit 7befb67af42a6e6088d91229ab5fcb8d64db0a3a)

CHANGES
lib/dns/rdataslab.c

diff --git a/CHANGES b/CHANGES
index 65c5cbfcee5a35197324840bdc04bf1683848c3b..ff6ce99f7c901b9cb271f258a0879c15bb56a1b2 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,5 +1,8 @@
        --- 9.12.0 released ---
 
+4862.  [bug]           The rdata flags for RRSIG was not being properly set
+                       when constructing a rdataslab. [RT #46978]
+
        --- 9.12.0rc2 released ---
 
 4859.  [bug]           A loop was possible when attempting to validate
index 55672a8d14e65281df8a2cd2d5bb35409dc25d7f..8d3edc95c170a187ea13faae92a176743cd14158 100644 (file)
@@ -320,7 +320,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);