]> git.kaiwu.me - nginx.git/commit
Limit req: unlocking of nodes on complex value errors.
authorMaxim Dounin <mdounin@mdounin.ru>
Thu, 8 Oct 2020 14:44:34 +0000 (17:44 +0300)
committerMaxim Dounin <mdounin@mdounin.ru>
Thu, 8 Oct 2020 14:44:34 +0000 (17:44 +0300)
commit9381ecb1854cca89a936ffbaeb82f40ec13d7f41
tree004f1509a01ccab0906510ad589d72e5b257a729
parent1e92a0a4cef98902aed35d7b402a6a402951aba4
Limit req: unlocking of nodes on complex value errors.

Previously, if there were multiple limits configured, errors in
ngx_http_complex_value() during processing of a non-first limit
resulted in reference count leak in shared memory nodes of already
processed limits.  Fix is to explicity unlock relevant nodes, much
like we do when rejecting requests.
src/http/modules/ngx_http_limit_req_module.c