X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=crypto%2Fasymmetric_keys%2Fpkcs7_trust.c;h=1f4e25f10049c2645c2a421b07bb21fdaf1c0857;hb=c51a024e3913e9dbaf4dfcb9aaba825668a89ace;hp=f6a009d88a33fb550654b11d2cfc4460c733a049;hpb=aabb406008fc722ff2c992867d755ec2176e55b5;p=mirror_ubuntu-jammy-kernel.git diff --git a/crypto/asymmetric_keys/pkcs7_trust.c b/crypto/asymmetric_keys/pkcs7_trust.c index f6a009d88a33..1f4e25f10049 100644 --- a/crypto/asymmetric_keys/pkcs7_trust.c +++ b/crypto/asymmetric_keys/pkcs7_trust.c @@ -69,7 +69,7 @@ static int pkcs7_validate_trust_one(struct pkcs7_message *pkcs7, /* Self-signed certificates form roots of their own, and if we * don't know them, then we can't accept them. */ - if (x509->next == x509) { + if (x509->signer == x509) { kleave(" = -ENOKEY [unknown self-signed]"); return -ENOKEY; }