Code

Updated get_sub_list
[gosa.git] / gosa-core / include / class_socketClient.inc
index 2812e26880eab4dd50b5455bc3d2eb204d4b7348..7219459bcedc32b237c4963a9bc7cd39af98aa30 100644 (file)
@@ -62,7 +62,7 @@ class Socket_Client
   private function decrypt($data)
   {
     /* decrypt data */
-    if($this->b_encrypt){
+    if($this->b_encrypt && strlen($data)){
       $data = base64_decode($data);
       mcrypt_generic_init($this->td, $this->ckey, $this->iv);
       $data = mdecrypt_generic($this->td, $data);
@@ -140,7 +140,6 @@ class Socket_Client
         }
       }
       if((microtime(TRUE) - $start) > $this->timeout ){      
-        trigger_error(sprintf("Exceeded timeout %f while reading from socket",$this->timeout));
         break;
       }
     }