Don't set extended type is mbstring flag set.
This commit is contained in:
parent
3894667036
commit
feb200bbb3
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue