]> git.kaiwu.me - nginx.git/commit
Limit req: fix of rbtree node insertion on hash collisions.
authorValentin Bartenev <vbart@nginx.com>
Mon, 3 Sep 2012 12:55:50 +0000 (12:55 +0000)
committerValentin Bartenev <vbart@nginx.com>
Mon, 3 Sep 2012 12:55:50 +0000 (12:55 +0000)
commit605a0ab2e1bbaba36e3d275e22b066238f87b4cb
tree3cf885ec8cbe4425d9e4875e64abc474a631c900
parent7ee8de668c4a3d337eb3997a258e4e40adaf069c
Limit req: fix of rbtree node insertion on hash collisions.

The rbtree used in ngx_http_limit_req_module has two level of keys, the top is
hash, and the next is the value string itself. However, when inserting a new
node, only hash has been set, while the value string has been left empty.

The bug was introduced in r4419 (1.1.14).

Found by Charles Chen.
src/http/modules/ngx_http_limit_req_module.c