sbsign: fix incorrect check for certificate load

Signed-off-by: Jeremy Kerr <jeremy.kerr@canonical.com>
This commit is contained in:
Jeremy Kerr 2012-05-12 21:35:09 -07:00
parent ef7966087d
commit d5f1a61b99

View file

@ -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;
} }