diff options
author | inoguchi <> | 2022-03-24 14:07:08 +0000 |
---|---|---|
committer | inoguchi <> | 2022-03-24 14:07:08 +0000 |
commit | 45eb44d4b416d7f8f4318e1ceb559f6318d5ac41 (patch) | |
tree | a64e15b6f6a3743a8a31a585fcdd7492b22a0ef1 /src/usr.bin/openssl/ts.c | |
parent | c9b79a5bc7c53d8e5942c7ef4ae52606299d3410 (diff) | |
download | openbsd-45eb44d4b416d7f8f4318e1ceb559f6318d5ac41.tar.gz openbsd-45eb44d4b416d7f8f4318e1ceb559f6318d5ac41.tar.bz2 openbsd-45eb44d4b416d7f8f4318e1ceb559f6318d5ac41.zip |
Check function return value
Diffstat (limited to 'src/usr.bin/openssl/ts.c')
-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); |