[nginx] Auth request: avoid assigning v->data.

Maxim Dounin mdounin at mdounin.ru
Mon Jun 8 14:56:05 UTC 2026


details:   http://freenginx.org/hg/nginx/rev/7be51873bdb1
branches:  
changeset: 9551:7be51873bdb1
user:      Maxim Dounin <mdounin at mdounin.ru>
date:      Mon Jun 08 17:53:31 2026 +0300
description:
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.

diffstat:

 src/http/modules/ngx_http_auth_request_module.c |  1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diffs (11 lines):

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