]> git.kaiwu.me - nginx.git/commit
Upstream: properly allocate memory for tried flags.
authorMaxim Dounin <mdounin@mdounin.ru>
Thu, 18 Aug 2011 17:04:52 +0000 (17:04 +0000)
committerMaxim Dounin <mdounin@mdounin.ru>
Thu, 18 Aug 2011 17:04:52 +0000 (17:04 +0000)
commitb7fcb430c156952fce4cb43a0a3cd81c2a5c939e
tree179d7f1be1edd2f49388c2086623bbfa2b76f8fd
parent624fbe94a23e183dc356f9c3e696a816cb67acc2
Upstream: properly allocate memory for tried flags.

Previous allocation only took into account number of non-backup servers, and
this caused memory corruption with many backup servers.

See report here:
http://mailman.nginx.org/pipermail/nginx/2011-May/026531.html
src/http/ngx_http_upstream_round_robin.c