Skip to content

Commit 1af4af0

Browse files
author
rgoliver
authored
OTA: Fix linux BlockEOF with data length zero (#22309)
Spec indicates BlockEOF May have data length zero.
1 parent f77eed5 commit 1af4af0

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/platform/Linux/OTAImageProcessorImpl.cpp

-5
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,6 @@ CHIP_ERROR OTAImageProcessorImpl::ProcessBlock(ByteSpan & block)
6868
return CHIP_ERROR_INTERNAL;
6969
}
7070

71-
if ((block.data() == nullptr) || block.empty())
72-
{
73-
return CHIP_ERROR_INVALID_ARGUMENT;
74-
}
75-
7671
// Store block data for HandleProcessBlock to access
7772
CHIP_ERROR err = SetBlock(block);
7873
if (err != CHIP_NO_ERROR)

0 commit comments

Comments
 (0)