提交 83574cf8 编写于 作者: D Dr. Stephen Henson

Fix from stable branch.

上级 2cd81830
...@@ -303,7 +303,7 @@ int X509_ATTRIBUTE_set1_data(X509_ATTRIBUTE *attr, int attrtype, const void *dat ...@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册