mirror of
https://github.com/Cacti/cacti.git
synced 2026-11-09 14:02:54 +09:00
Taking another swipe at #3341
This commit is contained in:
1 parent
621091f7a6
commit
3ef563d3b7
1 file changed
+4
-1
+4
-1
@@ -123,7 +123,10 @@ class Mo extends Extractor implements ExtractorInterface
|
||||
*/
|
||||
private static function readIntArray(StringReader $stream, $byteOrder, $count)
|
||||
{
|
||||
if (($read = $stream->read(4 * $count)) === false) {
|
||||
|
||||
if ($count == 0) {
|
||||
return false;
|
||||
} elseif (($read = $stream->read(4 * $count)) === false) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user