summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2013-12-17 14:38:31 -0500
committerjim-p <jimp@pfsense.org>2013-12-17 14:38:31 -0500
commite183e1cee78c3b88b8c276437f9c673fcb2368e9 (patch)
treedafae678f6d376dd02b71123e328a940aefe524c /etc
parentc1d5f0ef4a75bc7d5136435020c823cf87abd3e8 (diff)
downloadpfsense-e183e1cee78c3b88b8c276437f9c673fcb2368e9.zip
pfsense-e183e1cee78c3b88b8c276437f9c673fcb2368e9.tar.gz
Reduce the total minutes by the remote minutes used, do not use the value directly. Otherwise the voucher will be cut short or listed invalid when it otherwise should have time left over.
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/voucher.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/voucher.inc b/etc/inc/voucher.inc
index e19e121..a2baae9 100644
--- a/etc/inc/voucher.inc
+++ b/etc/inc/voucher.inc
@@ -438,7 +438,7 @@ function voucher_auth($voucher_received, $test = 0) {
// If we did a XMLRPC sync earlier check the timeleft
if (!empty($config['voucher'][$cpzone]['vouchersyncdbip']))
if($remote_time_used < $total_minutes)
- $total_minutes = $remote_time_used;
+ $total_minutes -= $remote_time_used;
// All given vouchers were valid and this isn't simply a test.
// Write back the used DB's
OpenPOWER on IntegriCloud