os: omit size check on payloadless Block packets

The check is already performed in 'packet_valid' where the conditions
for payloadless packets are already considered.

Fixes #3660.
This commit is contained in:
Josef Söntgen 2020-02-18 17:39:40 +01:00 committed by Christian Helmuth
parent 6addd6cf1e
commit c53be5a3fb
1 changed files with 1 additions and 1 deletions

View File

@ -107,7 +107,7 @@ class Block::Session_component : public Block::Session_component_base,
_p_to_handle.succeeded(false);
/* ignore invalid packets */
bool const valid = packet.size() && _range_check(_p_to_handle)
bool const valid = _range_check(_p_to_handle)
&& tx_sink()->packet_valid(packet)
&& aligned(packet.offset(), _info.align_log2);
if (!valid) {