diff options
author | Brent Cook <bcook@cvs.openbsd.org> | 2019-05-08 21:53:11 +0000 |
---|---|---|
committer | Brent Cook <bcook@cvs.openbsd.org> | 2019-05-08 21:53:11 +0000 |
commit | 23610cb8b8cc134433bd64d343c86bbe037f3ec4 (patch) | |
tree | f559a35c8a410f849b288ddd4b6e442feea0b28b /lib/libcrypto | |
parent | 39fcb2c43edba92f9189f7a45687d7c558b3a46e (diff) |
initialize safestack pointers
ok beck@, tb@
Diffstat (limited to 'lib/libcrypto')
-rw-r--r-- | lib/libcrypto/x509v3/v3_bcons.c | 4 | ||||
-rw-r--r-- | lib/libcrypto/x509v3/v3_bitst.c | 4 | ||||
-rw-r--r-- | lib/libcrypto/x509v3/v3_pmaps.c | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/lib/libcrypto/x509v3/v3_bcons.c b/lib/libcrypto/x509v3/v3_bcons.c index 9cf5793232c..1626d4e7866 100644 --- a/lib/libcrypto/x509v3/v3_bcons.c +++ b/lib/libcrypto/x509v3/v3_bcons.c @@ -1,4 +1,4 @@ -/* $OpenBSD: v3_bcons.c,v 1.16 2019/04/22 17:21:01 tb Exp $ */ +/* $OpenBSD: v3_bcons.c,v 1.17 2019/05/08 21:53:10 bcook Exp $ */ /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL * project 1999. */ @@ -145,7 +145,7 @@ static STACK_OF(CONF_VALUE) * i2v_BASIC_CONSTRAINTS(X509V3_EXT_METHOD *method, BASIC_CONSTRAINTS *bcons, STACK_OF(CONF_VALUE) *extlist) { - STACK_OF(CONF_VALUE) *free_extlist; + STACK_OF(CONF_VALUE) *free_extlist = NULL; if (extlist == NULL) { if ((free_extlist = extlist = sk_CONF_VALUE_new_null()) == NULL) diff --git a/lib/libcrypto/x509v3/v3_bitst.c b/lib/libcrypto/x509v3/v3_bitst.c index 178131edbb8..6744461754f 100644 --- a/lib/libcrypto/x509v3/v3_bitst.c +++ b/lib/libcrypto/x509v3/v3_bitst.c @@ -1,4 +1,4 @@ -/* $OpenBSD: v3_bitst.c,v 1.15 2019/04/22 17:23:55 tb Exp $ */ +/* $OpenBSD: v3_bitst.c,v 1.16 2019/05/08 21:53:10 bcook Exp $ */ /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL * project 1999. */ @@ -127,7 +127,7 @@ i2v_ASN1_BIT_STRING(X509V3_EXT_METHOD *method, ASN1_BIT_STRING *bits, STACK_OF(CONF_VALUE) *ret) { BIT_STRING_BITNAME *bnam; - STACK_OF(CONF_VALUE) *free_ret; + STACK_OF(CONF_VALUE) *free_ret = NULL; if (ret == NULL) { if ((free_ret = ret = sk_CONF_VALUE_new_null()) == NULL) diff --git a/lib/libcrypto/x509v3/v3_pmaps.c b/lib/libcrypto/x509v3/v3_pmaps.c index b10dfda0724..37264649c8a 100644 --- a/lib/libcrypto/x509v3/v3_pmaps.c +++ b/lib/libcrypto/x509v3/v3_pmaps.c @@ -1,4 +1,4 @@ -/* $OpenBSD: v3_pmaps.c,v 1.12 2019/04/22 17:32:09 tb Exp $ */ +/* $OpenBSD: v3_pmaps.c,v 1.13 2019/05/08 21:53:10 bcook Exp $ */ /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL * project. */ @@ -148,7 +148,7 @@ static STACK_OF(CONF_VALUE) * i2v_POLICY_MAPPINGS(const X509V3_EXT_METHOD *method, void *a, STACK_OF(CONF_VALUE) *extlist) { - STACK_OF(CONF_VALUE) *free_extlist; + STACK_OF(CONF_VALUE) *free_extlist = NULL; POLICY_MAPPINGS *pmaps = a; POLICY_MAPPING *pmap; char issuer[80], subject[80]; |