diff options
author | Renato Botelho <garga@FreeBSD.org> | 2013-01-22 15:00:05 -0200 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2013-01-22 15:00:05 -0200 |
commit | 782e33f83294568fb9f37cb29d8e16d7369d3ebd (patch) | |
tree | 7aa554d728d077b2f04981262992f6f8f3e9a682 /etc/inc/interfaces.inc | |
parent | 62f8244b1a484416945b22a6d978bf3e5abe4903 (diff) | |
download | pfsense-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.inc | 6 |
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) { |