summaryrefslogtreecommitdiffstats
path: root/crypto/dsa
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2000-11-19 14:14:52 +0000
committerRichard Levitte <levitte@openssl.org>2000-11-19 14:14:52 +0000
commit0cc1115643e690c0c18eb709d34910bc2e980bd8 (patch)
tree192d30f43992f613200e747f1bd522e120b5fd15 /crypto/dsa
parent257341b5b42eba3ae0ba0b7385af4cf2ea17dc4a (diff)
Make sure bs is assigned NULL when it's free'd, or there will be an
(incorrect) attempt to free it once more...
Diffstat (limited to 'crypto/dsa')
-rw-r--r--crypto/dsa/dsa_asn1.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/dsa/dsa_asn1.c b/crypto/dsa/dsa_asn1.c
index 81c9c863b4..134fbeebf8 100644
--- a/crypto/dsa/dsa_asn1.c
+++ b/crypto/dsa/dsa_asn1.c
@@ -84,6 +84,7 @@ DSA_SIG *d2i_DSA_SIG(DSA_SIG **a, const unsigned char **pp, long length)
if ((ret->s=BN_bin2bn(bs->data,bs->length,ret->s)) == NULL)
goto err_bn;
M_ASN1_BIT_STRING_free(bs);
+ bs = NULL;
M_ASN1_D2I_Finish_2(a);
err_bn: