https://reisub.nsupdate.info/git
/
friendica.git
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
56816ea
)
Daemon: Added check for empty data
author
Michael
<heluecht@pirati.ca>
Mon, 3 Feb 2020 00:13:09 +0000
(
00:13
+0000)
committer
Michael
<heluecht@pirati.ca>
Mon, 3 Feb 2020 00:13:09 +0000
(
00:13
+0000)
src/Util/ExAuth.php
patch
|
blob
|
history
diff --git
a/src/Util/ExAuth.php
b/src/Util/ExAuth.php
index
22ac020
..
e210208
100644
(file)
--- 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'];