Fix embedded string handling.
authorDr. Stephen Henson <steve@openssl.org>
Sun, 2 Oct 2016 13:13:40 +0000 (14:13 +0100)
committerDr. Stephen Henson <steve@openssl.org>
Mon, 17 Oct 2016 13:34:00 +0000 (14:34 +0100)
commit6215f27a83c6b9089a217dd6deab1665e0ced516
tree7385937a786ba409f7ef88146fd272edc279ade1
parentba6017a19346a169ca09bb67427ccf6fc56af0af
Fix embedded string handling.

Don't rely on embedded flag to free strings correctly: it wont be
set if there is a malloc failure during initialisation.

Thanks to Guido Vranken for reporting this issue.

Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/1725)
crypto/asn1/a_type.c
crypto/asn1/asn1_lib.c
crypto/asn1/asn1_locl.h
crypto/asn1/tasn_fre.c