Commit d275dbe6 authored by Dr. Stephen Henson's avatar Dr. Stephen Henson Committed by Richard Levitte
Browse files

Free up passed ASN.1 structure if reused.



Change the "reuse" behaviour in ASN1_item_d2i: if successful the old
structure is freed and a pointer to the new one used. If it is not
successful then the passed structure is untouched.

Exception made for primitive types so ssl_asn1.c still works.

Reviewed-by: default avatarTim Hudson <tjh@openssl.org>
Reviewed-by: default avatarEmilia Käsper <emilia@openssl.org>

Conflicts:
	doc/crypto/d2i_X509.pod
parent cf432b3b
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment