Project

General

Profile

« Previous | Next » 

Revision 673e587d

Added by Jim Pingle about 16 years ago

Fix CARP IP Creation. Subnet check was failing even for valid input. See ticket #1925

View differences:

usr/local/www/firewall_virtual_ip_edit.php
137 137
		$subnet_ip = return_first_two_octets($_POST['subnet']);
138 138
		$iflist = get_configured_interface_list_by_realif(false, true);
139 139
		foreach($iflist as $realif => $if) {
140
			$ww_subnet_ip = get_interface_ip($realif);
141
			$ww_subnet_bits = get_interface_subnet($realif);
140
			$ww_subnet_ip = get_interface_ip($if);
141
			$ww_subnet_bits = get_interface_subnet($if);
142 142
			if (ip_in_subnet($_POST['subnet'], gen_subnet($ww_subnet_ip, $ww_subnet_bits) . "/" . $ww_subnet_bits))
143 143
				$found = true;
144 144
		}

Also available in: Unified diff