vici: Fix check before applying identity to public keys

This commit is contained in:
Tobias Brunner
2021-11-23 16:15:41 +01:00
parent deb288ddc1
commit e43052893d
+1 -1
View File
@@ -2110,7 +2110,7 @@ CALLBACK(peer_sn, bool,
default_id = TRUE;
}
else if (cert->get_type(cert) == CERT_TRUSTED_PUBKEY &&
id->get_type != ID_ANY)
id->get_type(id) != ID_ANY)
{
/* set the subject of all raw public keys to the id */
pubkey_cert = (pubkey_cert_t*)cert;