summaryrefslogtreecommitdiff
path: root/www-servers/nginx/files/nginx-1.23.2-mod_auth_ldap-fix.patch
diff options
context:
space:
mode:
authorMarcin Deranek <marcin.deranek@slonko.net>2023-06-30 16:08:08 +0200
committerMarcin Deranek <marcin.deranek@slonko.net>2023-06-30 16:08:08 +0200
commitcdda7e3aba7adaef12c3d598c494988820a501f1 (patch)
tree66aa1a36b88714a3a36d1f97ae7348d69a429d0b /www-servers/nginx/files/nginx-1.23.2-mod_auth_ldap-fix.patch
parentbcfe2d68926ea38816109f607789eef9b0405cb4 (diff)
downloadportage-cdda7e3aba7adaef12c3d598c494988820a501f1.tar.gz
portage-cdda7e3aba7adaef12c3d598c494988820a501f1.tar.bz2
portage-cdda7e3aba7adaef12c3d598c494988820a501f1.zip
www-servers/nginx fork with updated lua modules
Diffstat (limited to 'www-servers/nginx/files/nginx-1.23.2-mod_auth_ldap-fix.patch')
-rw-r--r--www-servers/nginx/files/nginx-1.23.2-mod_auth_ldap-fix.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/www-servers/nginx/files/nginx-1.23.2-mod_auth_ldap-fix.patch b/www-servers/nginx/files/nginx-1.23.2-mod_auth_ldap-fix.patch
new file mode 100644
index 0000000..b3b4cf4
--- /dev/null
+++ b/www-servers/nginx/files/nginx-1.23.2-mod_auth_ldap-fix.patch
@@ -0,0 +1,21 @@
+From f0a5f61d9aad59c23e2c877094a8f17c43bee5b5 Mon Sep 17 00:00:00 2001
+From: freultwah <631910+freultwah@users.noreply.github.com>
+Date: Tue, 23 Aug 2022 18:09:45 +0300
+Subject: [PATCH] Make the module not crash with nginx >1.23.*
+
+---
+ ngx_http_auth_ldap_module.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/ngx_http_auth_ldap_module.c b/ngx_http_auth_ldap_module.c
+index 2f4e592..83b481c 100644
+--- a/ngx_http_auth_ldap_module.c
++++ b/ngx_http_auth_ldap_module.c
+@@ -1779,6 +1779,7 @@ ngx_http_auth_ldap_set_realm(ngx_http_request_t *r, ngx_str_t *realm)
+ }
+
+ r->headers_out.www_authenticate->hash = 1;
++ r->headers_out.www_authenticate->next = NULL;
+ r->headers_out.www_authenticate->key.len = sizeof("WWW-Authenticate") - 1;
+ r->headers_out.www_authenticate->key.data = (u_char *) "WWW-Authenticate";
+ r->headers_out.www_authenticate->value = *realm;