diff options
author | Ermal Luçi <eri@pfsense.org> | 2010-02-23 22:16:00 +0000 |
---|---|---|
committer | Ermal Luçi <eri@pfsense.org> | 2010-02-23 22:16:00 +0000 |
commit | 84786936818936be9a29c5b0bc3e81f453107ca0 (patch) | |
tree | 0c811c6502df019dd7a6976c089f3bc9f4269a0c /etc/inc/filter.inc | |
parent | 762a24a382ca93d2b78c8917c6cfe9d271c098c9 (diff) | |
download | pfsense-84786936818936be9a29c5b0bc3e81f453107ca0.zip pfsense-84786936818936be9a29c5b0bc3e81f453107ca0.tar.gz |
Prevent wrong config file from being generated. Reported-by: http://forum.pfsense.org/index.php/topic,23090.0.html
Diffstat (limited to 'etc/inc/filter.inc')
-rw-r--r-- | etc/inc/filter.inc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc index 6bf0674..fb0c5ca 100644 --- a/etc/inc/filter.inc +++ b/etc/inc/filter.inc @@ -413,6 +413,8 @@ function filter_generate_nested_alias($name, $alias, &$aliasnesting, &$aliasaddr $finallist = ""; $aliasnesting[$name] = $name; foreach ($addresses as $address) { + if (empty($address)) + continue; $linelength = strlen($finallist); $tmpline = ""; if(is_alias($address)) { @@ -2434,4 +2436,4 @@ function discover_pkg_rules($ruletype) { } } -?>
\ No newline at end of file +?> |