TLSA: fix fromwire length checks

This commit is contained in:
Mark Andrews 2020-08-13 12:30:04 +10:00
parent 9b93e5d684
commit 3429c35f52

View file

@ -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);
}