1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/debian/patches/fix-empty-response.diff Thu Mar 06 23:02:35 2014 +0100
1.3 @@ -0,0 +1,14 @@
1.4 +diff --git a/php/xmpp-prebind-php/lib/XmppPrebind.php b/php/xmpp-prebind-php/lib/XmppPrebind.php
1.5 +index 0658eaa..2c68ea0 100644
1.6 +--- a/php/xmpp-prebind-php/lib/XmppPrebind.php
1.7 ++++ b/php/xmpp-prebind-php/lib/XmppPrebind.php
1.8 +@@ -122,6 +122,9 @@ class XmppPrebind {
1.9 + $this->password = $password;
1.10 +
1.11 + $response = $this->sendInitialConnection();
1.12 ++ if ($response == '') {
1.13 ++ throw new Exception('Empty response');
1.14 ++ }
1.15 +
1.16 + $body = self::getBodyFromXml($response);
1.17 + $this->sid = $body->getAttribute('sid');