From a35704552f76e94e44bf4251f658d243a2115f0b Mon Sep 17 00:00:00 2001 From: Frank Bergkemper Date: Tue, 19 May 2015 17:14:30 +0200 Subject: [PATCH] Signal receiving bugfix Fixes an error in signal receiving and not ending up with BNET_MAIN_PROMPT (-18). --- vendor/Bareos/library/Bareos/BSock/BareosBSock.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/vendor/Bareos/library/Bareos/BSock/BareosBSock.php b/vendor/Bareos/library/Bareos/BSock/BareosBSock.php index 7efc82fc..7ba6a54a 100644 --- a/vendor/Bareos/library/Bareos/BSock/BareosBSock.php +++ b/vendor/Bareos/library/Bareos/BSock/BareosBSock.php @@ -273,7 +273,6 @@ private function receive_message() if ($len == 0) { break; } - if ($len > 0 && $len < 8192) { $msg .= fread($this->socket, $len); } elseif($len > 8192) { @@ -285,7 +284,6 @@ private function receive_message() $rlen = $len; } } - break; } elseif ($len < 0) { // signal received switch ($len) { @@ -834,6 +832,7 @@ private function cram_md5_challenge($password) public function send_command($cmd, $api=0) { $result = ""; + $debug = ""; switch($api) { case 2: