From: Raphael Spreitzer Date: Thu, 28 Aug 2014 02:53:10 +0000 (-0400) Subject: RT2400: ASN1_STRING_to_UTF8 missing initializer X-Git-Tag: OpenSSL_1_0_2-beta3~86 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=b85d461cdf92b1d76d903c245ec01fd7398179d8;p=oweals%2Fopenssl.git RT2400: ASN1_STRING_to_UTF8 missing initializer Reviewed-by: Tim Hudson (cherry picked from commit f9fb43e176ad2a914108cd2b403425dc1ebc7262) --- diff --git a/crypto/asn1/a_strex.c b/crypto/asn1/a_strex.c index ead37ac325..8fb4193bc0 100644 --- a/crypto/asn1/a_strex.c +++ b/crypto/asn1/a_strex.c @@ -568,6 +568,7 @@ int ASN1_STRING_to_UTF8(unsigned char **out, ASN1_STRING *in) mbflag |= MBSTRING_FLAG; stmp.data = NULL; stmp.length = 0; + stmp.flags = 0; ret = ASN1_mbstring_copy(&str, in->data, in->length, mbflag, B_ASN1_UTF8STRING); if(ret < 0) return ret; *out = stmp.data;