From: Dr. Stephen Henson Date: Fri, 30 May 2008 10:57:13 +0000 (+0000) Subject: Don't set extended type is mbstring flag set. X-Git-Tag: OpenSSL_0_9_8i~79 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=feb200bbb3848f8ef7219cd93cb7d531b4515832;p=oweals%2Fopenssl.git Don't set extended type is mbstring flag set. --- diff --git a/crypto/x509/x509_att.c b/crypto/x509/x509_att.c index 511b49d589..2c9061e3d2 100644 --- a/crypto/x509/x509_att.c +++ b/crypto/x509/x509_att.c @@ -303,7 +303,7 @@ int X509_ATTRIBUTE_set1_data(X509_ATTRIBUTE *attr, int attrtype, const void *dat } if(!(attr->value.set = sk_ASN1_TYPE_new_null())) goto err; if(!(ttmp = ASN1_TYPE_new())) goto err; - if (len == -1) + if ((len == -1) && !(attrtype & MBSTRING_FLAG)) { if (!ASN1_TYPE_set1(ttmp, attrtype, data)) goto err;