]> git.ipfire.org Git - people/ms/strongswan.git/commitdiff
vici: Fix check before applying identity to public keys
authorTobias Brunner <tobias@strongswan.org>
Tue, 23 Nov 2021 15:14:42 +0000 (16:14 +0100)
committerTobias Brunner <tobias@strongswan.org>
Tue, 23 Nov 2021 15:15:41 +0000 (16:15 +0100)
src/libcharon/plugins/vici/vici_config.c

index 4659f8f6a04975d8542a21a6f337556959cb9f82..aa6fbafbeb15cfa0fef4238592282811bf12c9fb 100644 (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;