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

This commit is contained in:
Ermal 2011-07-04 19:56:47 +00:00
parent c3ebb66946
commit 1a863be222

View File

@ -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