aboutsummaryrefslogtreecommitdiff
path: root/apps/nseq.c
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2015-10-30 11:18:04 +0000
committerMatt Caswell <matt@openssl.org>2015-11-09 22:48:41 +0000
commit96487cddd408e247819c4f122bd86e53ae4bd6c0 (patch)
treef6b424b2ce4d1d6ae2604b26d9fb956e13f932a2 /apps/nseq.c
parent90945fa31a42dcf3beb90540c618e4d627c595ea (diff)
downloadopenssl-96487cddd408e247819c4f122bd86e53ae4bd6c0.zip
openssl-96487cddd408e247819c4f122bd86e53ae4bd6c0.tar.gz
openssl-96487cddd408e247819c4f122bd86e53ae4bd6c0.tar.bz2
Continue standardisation of malloc handling in apps
continue on from previous commits but in the apps directory Reviewed-by: Kurt Roeckx <kurt@openssl.org>
Diffstat (limited to 'apps/nseq.c')
-rw-r--r--apps/nseq.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/nseq.c b/apps/nseq.c
index e8cf69d..fd63bd8 100644
--- a/apps/nseq.c
+++ b/apps/nseq.c
@@ -118,8 +118,10 @@ int nseq_main(int argc, char **argv)
if (toseq) {
seq = NETSCAPE_CERT_SEQUENCE_new();
+ if (seq == NULL)
+ goto end;
seq->certs = sk_X509_new_null();
- if (!seq->certs)
+ if (seq->certs == NULL)
goto end;
while ((x509 = PEM_read_bio_X509(in, NULL, NULL, NULL)))
sk_X509_push(seq->certs, x509);