mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-28 04:34:54 -04:00
NSEC3PARAM: check that saltlen is consistent with the rdata length
This commit is contained in:
parent
031ee9e279
commit
7dc8e720ff
1 changed files with 1 additions and 1 deletions
|
|
@ -160,7 +160,7 @@ fromwire_nsec3param(ARGS_FROMWIRE) {
|
|||
saltlen = sr.base[4];
|
||||
isc_region_consume(&sr, 5);
|
||||
|
||||
if (sr.length < saltlen) {
|
||||
if (sr.length != saltlen) {
|
||||
RETERR(DNS_R_FORMERR);
|
||||
}
|
||||
isc_region_consume(&sr, saltlen);
|
||||
|
|
|
|||
Loading…
Reference in a new issue