diff options
author | Ermal <eri@pfsense.org> | 2011-07-04 19:56:47 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2011-07-04 19:56:47 +0000 |
commit | 1a863be22287ae3a0cbceb86263d68d1fbd732ff (patch) | |
tree | 7a8b281bd1d3706fc52ee59352d2f656a4ff7692 | |
parent | c3ebb669464b0d4223af37bbda4d486606c5e869 (diff) | |
download | pfsense-1a863be22287ae3a0cbceb86263d68d1fbd732ff.zip pfsense-1a863be22287ae3a0cbceb86263d68d1fbd732ff.tar.gz |
If vouchers are disabled do not allow users to authenticate thorugh existing(active/in use) vouchers. Reported-by: http://forum.pfsense.org/index.php/topic,38342.0.html
-rw-r--r-- | etc/inc/voucher.inc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/etc/inc/voucher.inc b/etc/inc/voucher.inc index be3e322..374ec70 100644 --- a/etc/inc/voucher.inc +++ b/etc/inc/voucher.inc @@ -301,6 +301,9 @@ function voucher_expire($voucher_received) { function voucher_auth($voucher_received, $test = 0) { global $g, $config; + if (!isset($config['voucher']['enable'])) + return 0; + $voucherlck = lock('voucher', LOCK_EX); // XMLRPC Call over to the master Voucher node |