diff options
author | Ermal Luçi <eri@pfsense.org> | 2009-08-12 11:42:28 +0000 |
---|---|---|
committer | Ermal Luçi <eri@pfsense.org> | 2009-08-12 12:02:59 +0000 |
commit | b7cfb4ea8011319ab93bf2776cf124b55473a056 (patch) | |
tree | dd81435656e563ea96a73bb1830a1b594a2678ce /etc/inc | |
parent | 5bdddd2d95c46594fecb389f4befafe008378e85 (diff) | |
download | pfsense-b7cfb4ea8011319ab93bf2776cf124b55473a056.zip pfsense-b7cfb4ea8011319ab93bf2776cf124b55473a056.tar.gz |
Just return without the complete rule otherwise some misconfiguration may happen when a schedule expires.
Reported-by: mileswu
Diffstat (limited to 'etc/inc')
-rw-r--r-- | etc/inc/filter.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc index a5da880..c290b5a 100644 --- a/etc/inc/filter.inc +++ b/etc/inc/filter.inc @@ -1488,7 +1488,7 @@ function filter_generate_user_rule($rule) if ($sched['name'] == $rule['sched']) { if (!filter_get_time_based_rule_status($sched)) { mwexec("/sbin/pfctl -y {$sched['schedlabel']}"); - $line = "# schedule finished - {$rule}"; + return "# schedule finished - {$rule['descr']}"; } else if ($g['debug']) log_error("[TDR DEBUG] status true -- rule type '$type'"); |