mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-28 04:34:54 -04:00
NSEC3: reject records with a zero length hash field
This commit is contained in:
parent
d7f7014803
commit
031ee9e279
1 changed files with 1 additions and 1 deletions
|
|
@ -212,7 +212,7 @@ fromwire_nsec3(ARGS_FROMWIRE) {
|
|||
hashlen = sr.base[0];
|
||||
isc_region_consume(&sr, 1);
|
||||
|
||||
if (sr.length < hashlen) {
|
||||
if (hashlen < 1 || sr.length < hashlen) {
|
||||
RETERR(DNS_R_FORMERR);
|
||||
}
|
||||
isc_region_consume(&sr, hashlen);
|
||||
|
|
|
|||
Loading…
Reference in a new issue