mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-24 15:21:29 +02:00
[BUG] http: use correct ACL pointer when evaluating authentication
req_acl was used instead of req_acl_final. As a matter of luck, both happen to be the same at this point, but this is not granted in the future. This fix should be backported to 1.4.
This commit is contained in:
parent
8f2a1e72be
commit
910ef306bc
@ -3148,7 +3148,7 @@ int http_process_req_common(struct session *s, struct buffer *req, int an_bit, s
|
|||||||
|
|
||||||
if (req_acl_final && req_acl_final->action == PR_REQ_ACL_ACT_HTTP_AUTH) {
|
if (req_acl_final && req_acl_final->action == PR_REQ_ACL_ACT_HTTP_AUTH) {
|
||||||
struct chunk msg;
|
struct chunk msg;
|
||||||
char *realm = req_acl->http_auth.realm;
|
char *realm = req_acl_final->http_auth.realm;
|
||||||
|
|
||||||
if (!realm)
|
if (!realm)
|
||||||
realm = do_stats?STATS_DEFAULT_REALM:px->id;
|
realm = do_stats?STATS_DEFAULT_REALM:px->id;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user