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:
parent
6addd6cf1e
commit
c53be5a3fb
|
@ -107,7 +107,7 @@ class Block::Session_component : public Block::Session_component_base,
|
||||||
_p_to_handle.succeeded(false);
|
_p_to_handle.succeeded(false);
|
||||||
|
|
||||||
/* ignore invalid packets */
|
/* 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)
|
&& tx_sink()->packet_valid(packet)
|
||||||
&& aligned(packet.offset(), _info.align_log2);
|
&& aligned(packet.offset(), _info.align_log2);
|
||||||
if (!valid) {
|
if (!valid) {
|
||||||
|
|
Loading…
Reference in New Issue