summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-04-15 15:29:05 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-04-15 15:29:05 +0000
commit2e901dc83b326fe528bf7bfe06410322e7f7d09e (patch)
treef0cfe21abe254375e03239b282a05b9f5ba86fdf
parent4eb3e9fb47c4a7386357f84f288b11a292614300 (diff)
downloadpfsense-2e901dc83b326fe528bf7bfe06410322e7f7d09e.zip
pfsense-2e901dc83b326fe528bf7bfe06410322e7f7d09e.tar.gz
MFC 11430
don't loop through on empty servers (split() on \n ends up with an extra entry in the array)
-rw-r--r--etc/inc/filter.inc2
1 files changed, 2 insertions, 0 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc
index ce54065..48d0f9e 100644
--- a/etc/inc/filter.inc
+++ b/etc/inc/filter.inc
@@ -1215,6 +1215,8 @@ function generate_user_filter_rule($rule, $ngcounter) {
/* iterate through $lbs and setup items accordingly */
foreach($lbs as $server) {
+ if ($server == "")
+ continue;
for ($i = 0; isset($config['load_balancer']['lbpool'][$i]); $i++) {
foreach ($config['load_balancer']['lbpool'][$i]['servers'] as $lbsvr) {
$lbsvr_split=split("\|", $lbsvr);
OpenPOWER on IntegriCloud