summaryrefslogtreecommitdiff
path: root/www/lighttpd/files
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2009-11-30 17:48:17 +0000
committerRenato Botelho <garga@FreeBSD.org>2009-11-30 17:48:17 +0000
commit09d9c5f6f4be5b7022745cc29577a30c78c41066 (patch)
tree2efdc1913d68fdeb19561b19e5a85db73a2619d8 /www/lighttpd/files
parent- Switch gecko provider to seamonkey to fix build of extensions (diff)
Update to 1.4.25
PR: ports/141027 Submitted by: Ralf van der Enden <tremere@cainites.net> Approved by: mnag (maintainer)
Diffstat (limited to 'www/lighttpd/files')
-rw-r--r--www/lighttpd/files/patch-src_require.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/www/lighttpd/files/patch-src_require.c b/www/lighttpd/files/patch-src_require.c
new file mode 100644
index 000000000000..7ad810855ba5
--- /dev/null
+++ b/www/lighttpd/files/patch-src_require.c
@@ -0,0 +1,20 @@
+--- src/response.c.orig 2009-11-30 13:49:22.000000000 -0200
++++ src/response.c 2009-11-30 13:52:28.000000000 -0200
+@@ -136,6 +136,7 @@
+ X509 *xs;
+ X509_NAME *xn;
+ X509_NAME_ENTRY *xe;
++ int i, nentries;
+ if (
+ SSL_get_verify_result(con->ssl) != X509_V_OK
+ || !(xs = SSL_get_peer_certificate(con->ssl))
+@@ -144,7 +145,8 @@
+ }
+
+ xn = X509_get_subject_name(xs);
+- for (int i = 0, nentries = X509_NAME_entry_count(xn); i < nentries; ++i) {
++ nentries = X509_NAME_entry_count(xn);
++ for (i = 0; i < nentries; ++i) {
+ int xobjnid;
+ const char * xobjsn;
+ data_string *envds;