Daemon: Added check for empty data
This commit is contained in:
parent
56816ea9d5
commit
7ddcb1e35d
|
@ -73,6 +73,11 @@ class ExAuth
|
||||||
}
|
}
|
||||||
|
|
||||||
$iHeader = fgets(STDIN, 3);
|
$iHeader = fgets(STDIN, 3);
|
||||||
|
if (empty($iHeader)) {
|
||||||
|
$this->writeLog(LOG_ERR, 'empty stdin');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
$aLength = unpack('n', $iHeader);
|
$aLength = unpack('n', $iHeader);
|
||||||
$iLength = $aLength['1'];
|
$iLength = $aLength['1'];
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue