sbsign: fix incorrect check for certificate load
Signed-off-by: Jeremy Kerr <jeremy.kerr@canonical.com>
This commit is contained in:
parent
ef7966087d
commit
d5f1a61b99
1 changed files with 1 additions and 1 deletions
2
sbsign.c
2
sbsign.c
|
@ -154,7 +154,7 @@ int main(int argc, char **argv)
|
||||||
BIO *cert_bio = BIO_new_file(certfilename, "r");
|
BIO *cert_bio = BIO_new_file(certfilename, "r");
|
||||||
X509 *cert = PEM_read_bio_X509(cert_bio, NULL, NULL, NULL);
|
X509 *cert = PEM_read_bio_X509(cert_bio, NULL, NULL, NULL);
|
||||||
|
|
||||||
if (!pkey) {
|
if (!cert) {
|
||||||
fprintf(stderr, "error reading certificate %s\n", certfilename);
|
fprintf(stderr, "error reading certificate %s\n", certfilename);
|
||||||
return EXIT_FAILURE;
|
return EXIT_FAILURE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue