diff options
author | Renato Botelho <garga@FreeBSD.org> | 2015-01-06 15:15:55 -0200 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2015-01-06 15:15:55 -0200 |
commit | 3f499654983079045226918907c882376419c4fa (patch) | |
tree | 79d58e1887a397f8df3992ecc0b8104223fc2bdf /etc/inc/util.inc | |
parent | e89d2995bb8a1dfc1a10e945e50a0193e8cec086 (diff) | |
download | pfsense-3f499654983079045226918907c882376419c4fa.zip pfsense-3f499654983079045226918907c882376419c4fa.tar.gz |
Fix typo on variable name
Diffstat (limited to 'etc/inc/util.inc')
-rw-r--r-- | etc/inc/util.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/util.inc b/etc/inc/util.inc index 94216a2..1a27706 100644 --- a/etc/inc/util.inc +++ b/etc/inc/util.inc @@ -357,7 +357,7 @@ function gen_subnetv4_max($ipaddr, $bits) { /* same as gen_subnet_max() but validates IPv6 only */ function gen_subnetv6_max($ipaddr, $bits) { if (is_ipaddrv6($ipaddr) && is_numericint($bits) && $bits <= 128) { - $endip_bin = substr(Net_IPv6::_ip2Bin($ip), 0, $bits) . str_repeat('1', 128 - $bits); + $endip_bin = substr(Net_IPv6::_ip2Bin($ipaddr), 0, $bits) . str_repeat('1', 128 - $bits); return Net_IPv6::compress(Net_IPv6::_bin2Ip($endip_bin)); } return ""; |