From d5f1a61b99746afe93a9966b077713022638281b Mon Sep 17 00:00:00 2001 From: Jeremy Kerr Date: Sat, 12 May 2012 21:35:09 -0700 Subject: [PATCH] sbsign: fix incorrect check for certificate load Signed-off-by: Jeremy Kerr --- sbsign.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbsign.c b/sbsign.c index c880727..32c608c 100644 --- a/sbsign.c +++ b/sbsign.c @@ -154,7 +154,7 @@ int main(int argc, char **argv) BIO *cert_bio = BIO_new_file(certfilename, "r"); X509 *cert = PEM_read_bio_X509(cert_bio, NULL, NULL, NULL); - if (!pkey) { + if (!cert) { fprintf(stderr, "error reading certificate %s\n", certfilename); return EXIT_FAILURE; }