aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvan Enderlin <ivan.enderlin@hoa-project.net>2014-07-24 09:28:26 +0200
committerIvan Enderlin <ivan.enderlin@hoa-project.net>2014-07-24 09:28:26 +0200
commitce72b4ca26dc6dd9051d62fe3fe1b9e1334c29e8 (patch)
tree3e9af60985f21a8df5f2ccbd86daebec39431df8
parentfda6a8607813824ecd317c75b984e1ad9309a965 (diff)
downloadFastcgi-ce72b4ca26dc6dd9051d62fe3fe1b9e1334c29e8.zip
Fastcgi-ce72b4ca26dc6dd9051d62fe3fe1b9e1334c29e8.tar.gz
Fastcgi-ce72b4ca26dc6dd9051d62fe3fe1b9e1334c29e8.tar.bz2
Prevent an empty pack.
-rw-r--r--Connection.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/Connection.php b/Connection.php
index b15ea27..28f816f 100644
--- a/Connection.php
+++ b/Connection.php
@@ -208,7 +208,8 @@ abstract class Connection {
*/
protected function readPack ( ) {
- if(null === $pack = $this->read(8))
+ if( (null === $pack = $this->read(8))
+ || empty($pack))
return false;
$headers = array(