From: rettenbe Date: Mon, 4 Aug 2008 14:58:30 +0000 (+0000) Subject: bugfix: get_local_ip_for_remote_ip() was called with a non-ip parameter: '' X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=fb880debb8e28c34402b1c229fbf2804e96cab87;p=gosa.git 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 --- 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>/ ) {