both .as_i32_le() and .as_u32_le() in PcapNGOption are expecting 4 bytes. Even though the comments and code is expecting 4 bytes, the checks are incorrectly checking for 8 bytes, causing these 2 functions to return error wrongly. This change fixes the checks so the function behaves correctly.
both
.as_i32_le()
and.as_u32_le()
in PcapNGOption are expecting 4 bytes. Even though the comments and code is expecting 4 bytes, the checks are incorrectly checking for 8 bytes, causing these 2 functions to return error wrongly. This change fixes the checks so the function behaves correctly.