aboutsummaryrefslogtreecommitdiff
path: root/src/core/ngx_regex.c
diff options
context:
space:
mode:
authorMaxim Dounin <mdounin@mdounin.ru>2012-01-30 11:12:52 +0000
committerMaxim Dounin <mdounin@mdounin.ru>2012-01-30 11:12:52 +0000
commit4a23bc57051187362094c1f41793901805ac55c2 (patch)
tree812f310b9cb5392d8e593e861fa6696d75ef827d /src/core/ngx_regex.c
parentb06200f3dc071a60ceadbfc65577086ba4626cbd (diff)
downloadnginx-4a23bc57051187362094c1f41793901805ac55c2.tar.gz
nginx-4a23bc57051187362094c1f41793901805ac55c2.zip
Fixed error handling in ngx_event_connect_peer().
Previously if ngx_add_event() failed a connection was freed two times (once in the ngx_event_connect_peer(), and again by a caller) as pc->connection was left set. Fix is to always use ngx_close_connection() to close connection properly and set pc->connection to NULL on errors. Patch by Piotr Sikora.
Diffstat (limited to 'src/core/ngx_regex.c')
0 files changed, 0 insertions, 0 deletions