diff --git a/protocol/sacn/extended.cpp b/protocol/sacn/extended.cpp index 42d0f60..10265b7 100644 --- a/protocol/sacn/extended.cpp +++ b/protocol/sacn/extended.cpp @@ -137,6 +137,9 @@ void discovery_list_header::oStream(ACN::PDU::Stream stream) const */ void discovery_list_data::iStream(ACN::PDU::Stream stream) { + if (!stream->available()) + // empty discovery lists are valid and will have no remaining bytes. + stream->setstate(std::ios_base::eofbit); while (stream->good()) { found.emplace_back(std::make_shared());