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