projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
138388f
)
Check for a NULL return value from a call to X509_STORE_CTX_new()
author
Matt Caswell
<matt@openssl.org>
Fri, 29 Apr 2016 10:29:50 +0000
(11:29 +0100)
committer
Matt Caswell
<matt@openssl.org>
Fri, 29 Apr 2016 15:47:41 +0000
(16:47 +0100)
Reviewed-by: Rich Salz <rsalz@openssl.org>
apps/crl.c
patch
|
blob
|
history
diff --git
a/apps/crl.c
b/apps/crl.c
index 915c9ac741c7aeae21be224b58c3f5cd221f08f8..d3fd4162c429da186c9f620ad2eeb1958fd1f0b0 100644
(file)
--- a/
apps/crl.c
+++ b/
apps/crl.c
@@
-244,7
+244,7
@@
int crl_main(int argc, char **argv)
if (lookup == NULL)
goto end;
ctx = X509_STORE_CTX_new();
- if (!X509_STORE_CTX_init(ctx, store, NULL, NULL)) {
+ if (
ctx == NULL ||
!X509_STORE_CTX_init(ctx, store, NULL, NULL)) {
BIO_printf(bio_err, "Error initialising X509 store\n");
goto end;
}