summaryrefslogtreecommitdiff
path: root/src/usr.bin/openssl/ca.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/usr.bin/openssl/ca.c')
-rw-r--r--src/usr.bin/openssl/ca.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/usr.bin/openssl/ca.c b/src/usr.bin/openssl/ca.c
index 2e79849572..ac183f28bf 100644
--- a/src/usr.bin/openssl/ca.c
+++ b/src/usr.bin/openssl/ca.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ca.c,v 1.26 2018/02/07 05:47:55 jsing Exp $ */ 1/* $OpenBSD: ca.c,v 1.27 2019/07/03 03:24:02 deraadt Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -1109,7 +1109,7 @@ ca_main(int argc, char **argv)
1109 k = snprintf(pempath, sizeof(pempath), 1109 k = snprintf(pempath, sizeof(pempath),
1110 "%s/%s.pem", outdir, serialstr); 1110 "%s/%s.pem", outdir, serialstr);
1111 free(serialstr); 1111 free(serialstr);
1112 if (k == -1 || k >= sizeof(pempath)) { 1112 if (k < 0 || k >= sizeof(pempath)) {
1113 BIO_printf(bio_err, 1113 BIO_printf(bio_err,
1114 "certificate file name too long\n"); 1114 "certificate file name too long\n");
1115 goto err; 1115 goto err;