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 Aug 31, 2022
1 parent f77eed5 commit 1af4af0
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 1af4af0

Please sign in to comment.