X509: code cleanup

This commit is contained in:
terrafrost 2022-02-14 17:32:20 -06:00
parent b96fc26dbc
commit 247d23f40e

View File

@ -2378,11 +2378,7 @@ class X509
$spkac = ASN1::asn1map($decoded[0], Maps\SignedPublicKeyAndChallenge::MAP);
if (!isset($spkac) || $spkac === false) {
$this->currentCert = false;
return false;
}
if (!is_array($spkac)) {
if (!isset($spkac) || !is_array($spkac)) {
$this->currentCert = false;
return false;
}