[PATCH 2 of 6] Auth request: avoid assigning v->data
Maxim Dounin
mdounin at mdounin.ru
Wed Jun 3 15:46:50 UTC 2026
# HG changeset patch
# User Maxim Dounin <mdounin at mdounin.ru>
# Date 1780500565 -10800
# Wed Jun 03 18:29:25 2026 +0300
# Node ID 3ea72346b4743b474771bb60a435223f67b83dec
# Parent bb7f4e268d757385eca7908c14e0c5134cf8b14d
Auth request: avoid assigning v->data.
The ngx_http_auth_request_variable() handler does not use v->data, and
there is no need to assign anything to it.
diff --git a/src/http/modules/ngx_http_auth_request_module.c b/src/http/modules/ngx_http_auth_request_module.c
--- a/src/http/modules/ngx_http_auth_request_module.c
+++ b/src/http/modules/ngx_http_auth_request_module.c
@@ -431,7 +431,6 @@ ngx_http_auth_request_set(ngx_conf_t *cf
if (v->get_handler == NULL) {
v->get_handler = ngx_http_auth_request_variable;
- v->data = (uintptr_t) av;
}
av->set_handler = v->set_handler;
More information about the nginx-devel
mailing list