mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-08 22:22:05 -04:00
1518. [bug] dns_nsec_buildrdata(), and hence dns_nsec_build(),
contained a off-by-one error when working out the
number of octets in the bitmap.
This commit is contained in:
parent
12040a4f5c
commit
49fcdcd940
2 changed files with 6 additions and 2 deletions
4
CHANGES
4
CHANGES
|
|
@ -1,3 +1,7 @@
|
|||
1518. [bug] dns_nsec_buildrdata(), and hence dns_nsec_build(),
|
||||
contained a off-by-one error when working out the
|
||||
number of octets in the bitmap.
|
||||
|
||||
1517. [placeholder]
|
||||
|
||||
1516. [func] Roll the DNSSEC types to RRSIG, NSEC and DNSKEY.
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: nsec.c,v 1.2 2003/09/30 06:00:39 marka Exp $ */
|
||||
/* $Id: nsec.c,v 1.3 2003/10/01 04:07:27 marka Exp $ */
|
||||
|
||||
#include <config.h>
|
||||
|
||||
|
|
@ -119,7 +119,7 @@ dns_nsec_buildrdata(dns_db_t *db, dns_dbversion_t *version,
|
|||
if (result != ISC_R_NOMORE)
|
||||
return (result);
|
||||
|
||||
r.length += ((max_type + 7) / 8);
|
||||
r.length += max_type / 8 + 1;
|
||||
INSIST(r.length <= DNS_NSEC_BUFFERSIZE);
|
||||
dns_rdata_fromregion(rdata,
|
||||
dns_db_class(db),
|
||||
|
|
|
|||
Loading…
Reference in a new issue