From 7ddcb1e35d4f771ed6469135c7c9e57cdc8e5203 Mon Sep 17 00:00:00 2001 From: Michael Date: Mon, 3 Feb 2020 00:13:09 +0000 Subject: [PATCH] Daemon: Added check for empty data --- src/Util/ExAuth.php | 5 +++++ 1 file changed, 5 insertions(+) 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'];