diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/usr.bin/openssl/ts.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/usr.bin/openssl/ts.c b/src/usr.bin/openssl/ts.c index dfd5c3a464..a05e9677bc 100644 --- a/src/usr.bin/openssl/ts.c +++ b/src/usr.bin/openssl/ts.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: ts.c,v 1.21 2022/03/24 13:47:55 inoguchi Exp $ */ | 1 | /* $OpenBSD: ts.c,v 1.22 2022/03/24 14:07:08 inoguchi Exp $ */ |
| 2 | /* Written by Zoltan Glozik (zglozik@stones.com) for the OpenSSL | 2 | /* Written by Zoltan Glozik (zglozik@stones.com) for the OpenSSL |
| 3 | * project 2002. | 3 | * project 2002. |
| 4 | */ | 4 | */ |
| @@ -1172,7 +1172,8 @@ create_cert_store(char *ca_path, char *ca_file) | |||
| 1172 | int i; | 1172 | int i; |
| 1173 | 1173 | ||
| 1174 | /* Creating the X509_STORE object. */ | 1174 | /* Creating the X509_STORE object. */ |
| 1175 | cert_ctx = X509_STORE_new(); | 1175 | if ((cert_ctx = X509_STORE_new()) == NULL) |
| 1176 | goto err; | ||
| 1176 | 1177 | ||
| 1177 | /* Setting the callback for certificate chain verification. */ | 1178 | /* Setting the callback for certificate chain verification. */ |
| 1178 | X509_STORE_set_verify_cb(cert_ctx, verify_cb); | 1179 | X509_STORE_set_verify_cb(cert_ctx, verify_cb); |
