summaryrefslogtreecommitdiffstats
path: root/apps/nseq.c
diff options
context:
space:
mode:
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 e8cf69dac9..fd63bd821b 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);