summaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2009-03-25 10:42:34 +0000
committerDr. Stephen Henson <steve@openssl.org>2009-03-25 10:42:34 +0000
commitc60dca1f95457a9cb6deca7a4c3f81f99fe05b11 (patch)
tree4138334a9ff4511ef48a58e57d560b9f82b1693c /crypto
parent188abf7e2a0bb2fb803aefc186cc3ac538cbf72a (diff)
PR: 1868
Submitted by: Paolo Ganci <Paolo.Ganci@AdNovum.CH> Approved by: steve@openssl.org Don't set fields to NULL when freeing them up in ASN1 code. On some platforms with sizeof(long) < sizeof(char *) this can cause a crash.
Diffstat (limited to 'crypto')
-rw-r--r--crypto/asn1/tasn_dec.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/crypto/asn1/tasn_dec.c b/crypto/asn1/tasn_dec.c
index 36626da421..48bc1c0d4d 100644
--- a/crypto/asn1/tasn_dec.c
+++ b/crypto/asn1/tasn_dec.c
@@ -611,7 +611,6 @@ static int asn1_template_ex_d2i(ASN1_VALUE **val,
err:
ASN1_template_free(val, tt);
- *val = NULL;
return 0;
}
@@ -758,7 +757,6 @@ static int asn1_template_noexp_d2i(ASN1_VALUE **val,
err:
ASN1_template_free(val, tt);
- *val = NULL;
return 0;
}