summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2009-02-14 06:45:56 +0000
committerErmal Luçi <eri@pfsense.org>2009-02-14 06:45:56 +0000
commit1ae652df3ceb6134829e4177ca80761b59046bb1 (patch)
treeff06ede54da12275b18288bec1e301ce5f53d2e5 /etc
parent521cfa2f84230f2d9c61035386cdb9b98cbf4b8c (diff)
downloadpfsense-1ae652df3ceb6134829e4177ca80761b59046bb1.zip
pfsense-1ae652df3ceb6134829e4177ca80761b59046bb1.tar.gz
Do not try to convert twice to real interface return_gateways_array tries to fill the right real interface. Add the needed error checking.
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/filter.inc5
1 files changed, 4 insertions, 1 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc
index 23f0f13..b4a2439 100644
--- a/etc/inc/filter.inc
+++ b/etc/inc/filter.inc
@@ -1318,7 +1318,10 @@ function generate_user_filter_rule($rule)
$gateway = $rule['gateway'];
if(!is_ipaddr($rule['gateway'])) {
$gwip = $GatewaysList[$rule['gateway']]['gateway'];
- $int = get_real_interface($GatewaysList[$gateway]['interface']);
+ if ($GatewaysList[$gateway]['interface'])
+ $int = $GatewaysList[$gateway]['interface'];
+ else
+ $int = "";
} else {
$gwip = $rule['gateway'];
$int = guess_interface_from_ip($rule['gateway']);
OpenPOWER on IntegriCloud