3518. [bug] Increase the size of dns_rrl_key.s.rtype by one bit

so that all dns_rrl_rtype_t enum values fit regardless
                        of whether it is teated as signed or unsigned by
                        the compiler. [RT #32792]
This commit is contained in:
Mark Andrews
2013-03-07 18:44:45 +11:00
parent caf22ac0db
commit af21fc6644
2 changed files with 6 additions and 1 deletions

View File

@@ -1,3 +1,8 @@
3518. [bug] Increase the size of dns_rrl_key.s.rtype by one bit
so that all dns_rrl_rtype_t enum values fit regardless
of whether it is teated as signed or unsigned by
the compiler. [RT #32792]
3517. [bug] Reorder destruction to avoid shutdown race. [RT #32777]
3516. [placeholder]

View File

@@ -95,7 +95,7 @@ union dns_rrl_key {
isc_uint32_t qname_hash;
dns_rdatatype_t qtype;
isc_uint8_t qclass;
dns_rrl_rtype_t rtype :3;
dns_rrl_rtype_t rtype :4; /* 3 bits + sign bit */
isc_boolean_t ipv6 :1;
} s;
isc_uint16_t w[1];