From 655038e7db0bafe351a1d289a6cffaf67b8e3ad2 Mon Sep 17 00:00:00 2001 From: Adam Langley Date: Mon, 3 Nov 2014 18:03:06 -0800 Subject: [PATCH] ASN1_STRING_to_UTF8 missing initializer. (Imported from upstream's b85d461cdf92b1d76d903c245ec01fd7398179d8) Change-Id: I85f620a5a924c3fe73aa394b39ab8ab343c4c7eb --- crypto/x509/a_strex.c | 1 + 1 file changed, 1 insertion(+) diff --git a/crypto/x509/a_strex.c b/crypto/x509/a_strex.c index 551bcf25..0d5dd9f5 100644 --- a/crypto/x509/a_strex.c +++ b/crypto/x509/a_strex.c @@ -554,6 +554,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;