diff --git a/src/Util/ExAuth.php b/src/Util/ExAuth.php index 22ac0203f7..e21020829a 100644 --- a/src/Util/ExAuth.php +++ b/src/Util/ExAuth.php @@ -73,6 +73,11 @@ class ExAuth } $iHeader = fgets(STDIN, 3); + if (empty($iHeader)) { + $this->writeLog(LOG_ERR, 'empty stdin'); + return; + } + $aLength = unpack('n', $iHeader); $iLength = $aLength['1'];