Merge pull request #8227 from annando/daemon-checks
Daemon: Added check for empty data
This commit is contained in:
commit
38e5733b6e
1 changed files with 5 additions and 0 deletions
|
@ -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'];
|
||||
|
||||
|
|
Loading…
Reference in a new issue