summaryrefslogtreecommitdiffstats
path: root/etc/inc/interfaces.inc
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2013-01-22 15:00:05 -0200
committerRenato Botelho <garga@FreeBSD.org>2013-01-22 15:00:05 -0200
commit782e33f83294568fb9f37cb29d8e16d7369d3ebd (patch)
tree7aa554d728d077b2f04981262992f6f8f3e9a682 /etc/inc/interfaces.inc
parent62f8244b1a484416945b22a6d978bf3e5abe4903 (diff)
downloadpfsense-782e33f83294568fb9f37cb29d8e16d7369d3ebd.zip
pfsense-782e33f83294568fb9f37cb29d8e16d7369d3ebd.tar.gz
Validate QinQ interface to be sure it's valid
Diffstat (limited to 'etc/inc/interfaces.inc')
-rw-r--r--etc/inc/interfaces.inc6
1 files changed, 6 insertions, 0 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc
index 06a5e60..bb3c8cf 100644
--- a/etc/inc/interfaces.inc
+++ b/etc/inc/interfaces.inc
@@ -290,6 +290,12 @@ function interface_qinq_configure(&$vlan, $fd = NULL) {
log_error(sprintf(gettext("interface_qinq_configure called with if undefined.%s"), "\n"));
return;
}
+
+ if(!does_interface_exist($qinqif)) {
+ log_error(sprintf(gettext("interface_qinq_configure called with invalid if.%s"), "\n"));
+ return;
+ }
+
$vlanif = interface_vlan_configure($vlan);
if ($fd == NULL) {
OpenPOWER on IntegriCloud