]> git.kaiwu.me - nginx.git/commit
Merge of r4833: limit req: fix of rbtree node insertion.
authorMaxim Dounin <mdounin@mdounin.ru>
Mon, 24 Sep 2012 19:11:45 +0000 (19:11 +0000)
committerMaxim Dounin <mdounin@mdounin.ru>
Mon, 24 Sep 2012 19:11:45 +0000 (19:11 +0000)
commit9e5528f244ad0befd167bee1522def97ebfc6256
tree76c1cccc3357a8e91fe964b6d9198112bf8b8df5
parent21ccde77f5b632fc1d780d4533a7efa5be69fe9d
Merge of r4833: limit req: fix of rbtree node insertion.

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