summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/x509v3/v3_bitst.c
diff options
context:
space:
mode:
authorbcook <>2019-05-08 21:53:10 +0000
committerbcook <>2019-05-08 21:53:10 +0000
commit8eb3e6ba91afeb09f96f9f79c8d49b027678c1e3 (patch)
treef1129a1f2175d7d9ac008e53e0c169cdf9d8f0d4 /src/lib/libcrypto/x509v3/v3_bitst.c
parenta32a0f9c7ce589f17b76a740fcf6998b70bd28e6 (diff)
downloadopenbsd-8eb3e6ba91afeb09f96f9f79c8d49b027678c1e3.tar.gz
openbsd-8eb3e6ba91afeb09f96f9f79c8d49b027678c1e3.tar.bz2
openbsd-8eb3e6ba91afeb09f96f9f79c8d49b027678c1e3.zip
initialize safestack pointers
ok beck@, tb@
Diffstat (limited to 'src/lib/libcrypto/x509v3/v3_bitst.c')
-rw-r--r--src/lib/libcrypto/x509v3/v3_bitst.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/x509v3/v3_bitst.c b/src/lib/libcrypto/x509v3/v3_bitst.c
index 178131edbb..6744461754 100644
--- a/src/lib/libcrypto/x509v3/v3_bitst.c
+++ b/src/lib/libcrypto/x509v3/v3_bitst.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: v3_bitst.c,v 1.15 2019/04/22 17:23:55 tb Exp $ */ 1/* $OpenBSD: v3_bitst.c,v 1.16 2019/05/08 21:53:10 bcook Exp $ */
2/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL 2/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
3 * project 1999. 3 * project 1999.
4 */ 4 */
@@ -127,7 +127,7 @@ i2v_ASN1_BIT_STRING(X509V3_EXT_METHOD *method, ASN1_BIT_STRING *bits,
127 STACK_OF(CONF_VALUE) *ret) 127 STACK_OF(CONF_VALUE) *ret)
128{ 128{
129 BIT_STRING_BITNAME *bnam; 129 BIT_STRING_BITNAME *bnam;
130 STACK_OF(CONF_VALUE) *free_ret; 130 STACK_OF(CONF_VALUE) *free_ret = NULL;
131 131
132 if (ret == NULL) { 132 if (ret == NULL) {
133 if ((free_ret = ret = sk_CONF_VALUE_new_null()) == NULL) 133 if ((free_ret = ret = sk_CONF_VALUE_new_null()) == NULL)