We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0dd40cf commit feafa67Copy full SHA for feafa67
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 $ */
+/* $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
3
* project 2002.
4
*/
@@ -1172,7 +1172,8 @@ create_cert_store(char *ca_path, char *ca_file)
1172
int i;
1173
1174
/* Creating the X509_STORE object. */
1175
- cert_ctx = X509_STORE_new();
+ if ((cert_ctx = X509_STORE_new()) == NULL)
1176
+ goto err;
1177
1178
/* Setting the callback for certificate chain verification. */
1179
X509_STORE_set_verify_cb(cert_ctx, verify_cb);
0 commit comments