summaryrefslogtreecommitdiff
path: root/security/openssl
diff options
context:
space:
mode:
authoradrianp <adrianp@pkgsrc.org>2008-10-25 12:04:34 +0000
committeradrianp <adrianp@pkgsrc.org>2008-10-25 12:04:34 +0000
commitdede2ac381fcfe36aa5e169d5062824253dbf29a (patch)
tree0698f53accd822bb31f74cee51b26cfda3a50374 /security/openssl
parent85e41a039656e0a346b31b18a372e8c25bfd8a7d (diff)
downloadpkgsrc-dede2ac381fcfe36aa5e169d5062824253dbf29a.tar.gz
Might be good to actually add the patch that fixes the problem
Diffstat (limited to 'security/openssl')
-rw-r--r--security/openssl/patches/patch-am13
1 files changed, 13 insertions, 0 deletions
diff --git a/security/openssl/patches/patch-am b/security/openssl/patches/patch-am
new file mode 100644
index 00000000000..c34822b608f
--- /dev/null
+++ b/security/openssl/patches/patch-am
@@ -0,0 +1,13 @@
+$NetBSD: patch-am,v 1.5 2008/10/25 12:04:34 adrianp Exp $
+
+--- crypto/x509/x509_att.c.orig 2008-04-02 12:11:51.000000000 +0100
++++ crypto/x509/x509_att.c
+@@ -303,7 +303,7 @@ int X509_ATTRIBUTE_set1_data(X509_ATTRIB
+ }
+ 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;