From 156487ed7db7f8a08d6063001a37d9cdf54cdd3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ermal=20Lu=E7i?= Date: Tue, 30 Jun 2009 10:37:21 +0000 Subject: Fix various issues reported on http://forum.pfsense.org/index.php/topic,8672.0.html. --- etc/inc/voucher.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'etc/inc/voucher.inc') 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; } -- cgit v1.1