|
@@ -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
|
|
/* Self-signed certificates form roots of their own, and if we
|
|
* don't know them, then we can't accept them.
|
|
* don't know them, then we can't accept them.
|
|
*/
|
|
*/
|
|
- if (x509->next == x509) {
|
|
|
|
|
|
+ if (x509->signer == x509) {
|
|
kleave(" = -ENOKEY [unknown self-signed]");
|
|
kleave(" = -ENOKEY [unknown self-signed]");
|
|
return -ENOKEY;
|
|
return -ENOKEY;
|
|
}
|
|
}
|