openssl/func-parm-err.patch

14 lines
478 B
Diff
Raw Normal View History

Index: openssl-0.9.8k/crypto/x509/x509_att.c
===================================================================
--- openssl-0.9.8k.orig/crypto/x509/x509_att.c
+++ openssl-0.9.8k/crypto/x509/x509_att.c
@@ -312,7 +312,7 @@ int X509_ATTRIBUTE_set1_data(X509_ATTRIB
if(!(ttmp = ASN1_TYPE_new())) goto err;
if ((len == -1) && !(attrtype & MBSTRING_FLAG))
{
- if (!ASN1_TYPE_set1(ttmp, attrtype, data))
+ if (!ASN1_TYPE_set1(ttmp, attrtype, stmp))
goto err;
}
else