Skip to content

Commit

Permalink
www/nginx-devel: fix crash of the third-party http_auth_ldap module
Browse files Browse the repository at this point in the history
Bump PORTREVISION.

PR:		265969
  • Loading branch information
osokin committed Aug 23, 2022
1 parent 32d0a45 commit 7b8cbbf
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion www/nginx-devel/Makefile
@@ -1,6 +1,6 @@
PORTNAME?= nginx
PORTVERSION= 1.23.1
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES= www
MASTER_SITES= https://nginx.org/download/ \
LOCAL/osa
Expand Down
1 change: 1 addition & 0 deletions www/nginx-devel/Makefile.extmod
Expand Up @@ -98,6 +98,7 @@ HTTP_AUTH_KRB5_EXTRA_PATCHES= ${PATCHDIR}/extra-patch-spnego-http-auth-nginx-mod
HTTP_AUTH_KRB5_USES= gssapi:mit

HTTP_AUTH_LDAP_GH_TUPLE= kvspb:nginx-auth-ldap:83c059b:http_auth_ldap
HTTP_AUTH_LDAP_EXTRA_PATCHES= ${PATCHDIR}/extra-patch-ngx_http_auth_ldap_module.c
HTTP_AUTH_LDAP_VARS= DSO_EXTMODS+=http_auth_ldap
HTTP_AUTH_LDAP_USE= openldap=yes

Expand Down
10 changes: 10 additions & 0 deletions www/nginx-devel/files/extra-patch-ngx_http_auth_ldap_module.c
@@ -0,0 +1,10 @@
--- ../nginx-auth-ldap-83c059b/ngx_http_auth_ldap_module.c.orig 2022-08-21 17:04:57.754760000 +0300
+++ ../nginx-auth-ldap-83c059b/ngx_http_auth_ldap_module.c 2022-08-21 17:08:46.939318000 +0300
@@ -1779,6 +1779,7 @@
}

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;

0 comments on commit 7b8cbbf

Please sign in to comment.