mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-08 18:22:05 -04:00
TLSA: fix fromwire length checks
This commit is contained in:
parent
9b93e5d684
commit
3429c35f52
1 changed files with 2 additions and 1 deletions
|
|
@ -128,7 +128,8 @@ generic_fromwire_tlsa(ARGS_FROMWIRE) {
|
|||
|
||||
isc_buffer_activeregion(source, &sr);
|
||||
|
||||
if (sr.length < 3) {
|
||||
/* Usage(1), Selector(1), Type(1), Data(1+) */
|
||||
if (sr.length < 4) {
|
||||
return (ISC_R_UNEXPECTEDEND);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue