1
0
Fork 0

remove redundant length check

This commit is contained in:
Kevin Matz 2021-08-29 09:07:05 -04:00
parent dbed27aacf
commit 9ab058393e
1 changed files with 0 additions and 5 deletions

View File

@ -190,11 +190,6 @@ void address_list::iStream(PDU::Stream stream)
// Property Address
addresses.emplace_back(range(type_->data_type, type_->address_length));
*stream >> addresses.back();
//set EOF if buffer insufficient for another property range
if (stream->available() < element_size(type_->address_length) *
(type_->data_type == SINGLE? 1 : 3))
stream->setstate(std::ios_base::eofbit);
}
}