Skip to content

Commit

Permalink
OTA: Fix linux BlockEOF with data length zero (#22309)
Browse files Browse the repository at this point in the history
Spec indicates BlockEOF May have data length zero.
  • Loading branch information
rgoliver authored and pull[bot] committed Sep 27, 2023
1 parent 68272b1 commit f79261a
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/platform/Linux/OTAImageProcessorImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,6 @@ CHIP_ERROR OTAImageProcessorImpl::ProcessBlock(ByteSpan & block)
return CHIP_ERROR_INTERNAL;
}

if ((block.data() == nullptr) || block.empty())
{
return CHIP_ERROR_INVALID_ARGUMENT;
}

// Store block data for HandleProcessBlock to access
CHIP_ERROR err = SetBlock(block);
if (err != CHIP_NO_ERROR)
Expand Down

0 comments on commit f79261a

Please sign in to comment.