mirror of
https://github.com/openssl/openssl.git
synced 2024-11-27 05:21:51 +08:00
Fix from stable branch.
This commit is contained in:
parent
2cd81830ef
commit
83574cf808
@ -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(!(attr->value.set = sk_ASN1_TYPE_new_null())) goto err;
|
||||||
if(!(ttmp = ASN1_TYPE_new())) 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))
|
if (!ASN1_TYPE_set1(ttmp, attrtype, data))
|
||||||
goto err;
|
goto err;
|
||||||
|
Loading…
Reference in New Issue
Block a user