From 6f3bdaaddb093490daa693f6e9ae91e7981c2f6a Mon Sep 17 00:00:00 2001 From: rettenbe Date: Mon, 24 Nov 2008 13:37:36 +0000 Subject: [PATCH] bugfix: multiple declaration of $next_msg git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13015 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-si/gosa-si-server | 6 +++--- gosa-si/tests/client.php | 6 +++++- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/gosa-si/gosa-si-server b/gosa-si/gosa-si-server index fa9d32aec..07d1aadf5 100755 --- a/gosa-si/gosa-si-server +++ b/gosa-si/gosa-si-server @@ -1101,9 +1101,9 @@ sub msg_to_decrypt { my ($msg, $msg_hash, $module); my $error = 0; - # hole neue msg aus @msgs_to_decrypt - my $next_msg = shift @msgs_to_decrypt; - my ($next_msg, $msg_source) = split(/;/, $next_msg); + # fetch new msg out of @msgs_to_decrypt + my $tmp_next_msg = shift @msgs_to_decrypt; + my ($next_msg, $msg_source) = split(/;/, $tmp_next_msg); # msg is from a new client or gosa ($msg, $msg_hash, $module) = &input_from_unknown_host($next_msg, $session_id); diff --git a/gosa-si/tests/client.php b/gosa-si/tests/client.php index 8b879a2a0..56206507d 100755 --- a/gosa-si/tests/client.php +++ b/gosa-si/tests/client.php @@ -78,6 +78,7 @@ for($count = 1; $count <= $zahl; $count++) # List all si-server providing opsi #$data = "
gosa_get_hosts_with_module
GOSA 10.89.1.31:20081 mailqueue_com
"; + $data = "
gosa_get_hosts_with_module
GOSA linux-cl-2:20081 mailqueue_com
"; # Send messages to a user and displayed message via konch #$data = "
gosa_send_user_msg
GOSA GOSA ".base64_encode("eine wichtige nachricht")." admin polle harald 20130101235959 ".base64_encode("kaffeepause")."
"; @@ -124,7 +125,7 @@ for($count = 1; $count <= $zahl; $count++) # Opsi testing # Get all netboot products - $data = "
gosa_opsi_get_netboot_products
GOSA GOSA
"; + #$data = "
gosa_opsi_get_netboot_products
GOSA GOSA
"; # Get netboot product for specific host #$data = "
gosa_opsi_get_netboot_products
GOSA GOSA linux-cl-2.intranet.gonicus.de
"; @@ -214,6 +215,9 @@ for($count = 1; $count <= $zahl; $count++) # SYSLOG reload #$data = "
gosa_trigger_reload_syslog_config
GOSA GOSA 00:01:6c:9d:b9:fa
"; + + + $sock->write($data); $answer = "nothing"; $answer = $sock->read(); -- 2.30.2