summaryrefslogtreecommitdiffstats
path: root/etc/inc/gwlb.inc
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2013-04-18 14:28:09 -0300
committerRenato Botelho <garga@FreeBSD.org>2013-04-18 14:28:37 -0300
commitd97eccf9fdee3c753f6ae5ed222dba7ae3448a21 (patch)
treebccf5631bfeeee4267a928b4629f5069b6c821aa /etc/inc/gwlb.inc
parentf040882cb19e0d4b4165d311e0223680b11770c3 (diff)
downloadpfsense-d97eccf9fdee3c753f6ae5ed222dba7ae3448a21.zip
pfsense-d97eccf9fdee3c753f6ae5ed222dba7ae3448a21.tar.gz
Make more strict comparison to avoid type issues when gw name only contain numbers. Fixes #2956
Diffstat (limited to 'etc/inc/gwlb.inc')
-rw-r--r--etc/inc/gwlb.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/gwlb.inc b/etc/inc/gwlb.inc
index d8c3a12..50eabc1 100644
--- a/etc/inc/gwlb.inc
+++ b/etc/inc/gwlb.inc
@@ -843,7 +843,7 @@ function lookup_gateway_ip_by_name($name) {
$gateways_arr = return_gateways_array(false, true);
foreach ($gateways_arr as $gname => $gw) {
- if ($gw['name'] == $name || $gname == $name)
+ if ($gw['name'] === $name || $gname === $name)
return $gw['gateway'];
}
OpenPOWER on IntegriCloud