diff options
author | Ermal Luçi <eri@pfsense.org> | 2009-06-30 10:37:21 +0000 |
---|---|---|
committer | Ermal Luçi <eri@pfsense.org> | 2009-06-30 10:37:42 +0000 |
commit | 156487ed7db7f8a08d6063001a37d9cdf54cdd3a (patch) | |
tree | af74aca531d93acf13dc0c62c5e4d9c83432f1e3 /etc/inc/voucher.inc | |
parent | 3e0621caec4765fcb9311681b6c77a9117e9e148 (diff) | |
download | pfsense-156487ed7db7f8a08d6063001a37d9cdf54cdd3a.zip pfsense-156487ed7db7f8a08d6063001a37d9cdf54cdd3a.tar.gz |
Fix various issues reported on http://forum.pfsense.org/index.php/topic,8672.0.html.
Diffstat (limited to 'etc/inc/voucher.inc')
-rw-r--r-- | etc/inc/voucher.inc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/inc/voucher.inc b/etc/inc/voucher.inc index 34f4f77..e782594 100644 --- a/etc/inc/voucher.inc +++ b/etc/inc/voucher.inc @@ -28,6 +28,7 @@ /* include all configuration functions */ require_once("config.inc"); +$dirtyfile = "{$g['varrun_path']}/voucher.dirty"; /* *Authenticate a voucher and return the remaining time credit in minutes @@ -397,8 +398,8 @@ function voucher_save_db_to_config() { } $rollent['active'] = $db; } - unlock($voucherlck); unlink($dirtyfile); + unlock($voucherlck); write_config(); return; } |