Code

Fix @13541 - there is no port to check in this function
authorlhm-gosa <lhm-gosa@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 16 Mar 2009 19:24:27 +0000 (19:24 +0000)
committerlhm-gosa <lhm-gosa@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 16 Mar 2009 19:24:27 +0000 (19:24 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@13548 594d385d-05f5-0310-b6e9-bd551577e9d8

trunk/gosa-si/gosa-si-client

index 4d109684f37373877307f7613457f0acda37d2ac..b6a84898f79776247c7154c2bb95e80339cfc835 100755 (executable)
@@ -331,7 +331,7 @@ sub get_local_mac_for_remote_ip {
 
        if($server_ip =~ /^[a-z][a-z0-9\.]$/i) {
                my $ip_address = inet_ntoa(scalar gethostbyname($server_ip));
-               if(defined($ip_address) && $ip_address =~ /^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}/ && $port =~ /^\d+$/) {
+               if(defined($ip_address) && $ip_address =~ /^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}/) {
                        # Write ip address to $server_ip variable
                        $server_ip = $ip_address;
                }