mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Fix this function's logic/variable tests.
This commit is contained in:
parent
7b757d1bae
commit
088ce8692b
@ -509,13 +509,13 @@ function cert_unrevoke($cert, & $crl) {
|
||||
|
||||
function is_cert_revoked($cert) {
|
||||
global $config;
|
||||
if (!is_array($config['crl']) || is_array($config['crl']['cert']))
|
||||
if (!is_array($config['crl']))
|
||||
return false;
|
||||
|
||||
foreach ($config['crl'] as $crl) {
|
||||
if (!is_array($config['crl']['cert']))
|
||||
if (!is_array($crl['cert']))
|
||||
continue;
|
||||
foreach ($config['crl']['cert'] as $rcert) {
|
||||
foreach ($crl['cert'] as $rcert) {
|
||||
if (($rcert['refid'] == $cert['refid']) || ($rcert['name'] == $cert['name']))
|
||||
return true;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user