aboutsummaryrefslogtreecommitdiff
path: root/src/core/ngx_slab.c
diff options
context:
space:
mode:
authorMaxim Dounin <mdounin@mdounin.ru>2016-10-06 23:16:05 +0300
committerMaxim Dounin <mdounin@mdounin.ru>2016-10-06 23:16:05 +0300
commit52892835ef16ea15a77e2407099e0de0dfcc8a28 (patch)
treebee0b2e551f969bc4874ae303efa6f91403fa92b /src/core/ngx_slab.c
parent88dc647481a9280fa6cedb0bed61a34123119b3c (diff)
downloadnginx-52892835ef16ea15a77e2407099e0de0dfcc8a28.tar.gz
nginx-52892835ef16ea15a77e2407099e0de0dfcc8a28.zip
Realip: fixed duplicate processing on redirects (ticket #1098).
Duplicate processing was possible if the address set by realip was listed in set_realip_from, and there was an internal redirect so module context was cleared. This resulted in exactly the same address being set, so this wasn't a problem before the $realip_remote_addr variable was introduced, though now results in incorrect $realip_remote_addr being picked. Fix is to use ngx_http_realip_get_module_ctx() to look up module context even if it was cleared. Additionally, the order of checks was switched to check the configuration first as it looks more effective.
Diffstat (limited to 'src/core/ngx_slab.c')
0 files changed, 0 insertions, 0 deletions