From fb880debb8e28c34402b1c229fbf2804e96cab87 Mon Sep 17 00:00:00 2001 From: rettenbe Date: Mon, 4 Aug 2008 14:58:30 +0000 Subject: [PATCH] bugfix: get_local_ip_for_remote_ip() was called with a non-ip parameter: '' git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12143 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-si/modules/GosaPackages.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gosa-si/modules/GosaPackages.pm b/gosa-si/modules/GosaPackages.pm index 3f5bc8ca2..fb3a7048f 100644 --- a/gosa-si/modules/GosaPackages.pm +++ b/gosa-si/modules/GosaPackages.pm @@ -120,7 +120,9 @@ sub process_incoming_msg { foreach my $out_msg ( @msg_l ) { # determine the correct outgoing source address to the corresponding target address $out_msg =~ /(\S*)<\/target>/; - my $act_server_ip = &main::get_local_ip_for_remote_ip(sprintf("%s", $1 =~ /^([0-9\.]*?):.*$/)); + my $act_target = $1; + $act_target =~ s/GOSA/$main::server_address/; + my $act_server_ip = &main::get_local_ip_for_remote_ip(sprintf("%s", $act_target =~ /^([0-9\.]*?):.*$/)); # Patch the correct outgoing source address if ($out_msg =~ /GOSA<\/source>/ ) { -- 2.30.2