mirror of
https://github.com/nginx/nginx.git
synced 2024-12-20 06:03:31 -06:00
Limit req: don't truncate key value to 255 bytes.
While the module allows to use values up to 65535 bytes as a key, that actually never worked properly.
This commit is contained in:
parent
681f74a9ba
commit
a7798de9bd
@ -461,7 +461,7 @@ ngx_http_limit_req_lookup(ngx_http_limit_req_limit_t *limit, ngx_uint_t hash,
|
||||
|
||||
lr = (ngx_http_limit_req_node_t *) &node->color;
|
||||
|
||||
lr->len = (u_char) len;
|
||||
lr->len = (u_short) len;
|
||||
lr->excess = 0;
|
||||
|
||||
ngx_memcpy(lr->data, data, len);
|
||||
|
Loading…
Reference in New Issue
Block a user