summaryrefslogtreecommitdiffhomepage
path: root/src/os/unix/ngx_process.c
diff options
context:
space:
mode:
authorMaxim Dounin <mdounin@mdounin.ru>2012-02-05 20:06:50 +0000
committerMaxim Dounin <mdounin@mdounin.ru>2012-02-05 20:06:50 +0000
commitb39bc1ccbddbcd1a3f0d3972c2ab04762b2d580d (patch)
tree59c446e603b449bfdaeda66a75fc24722e9e041e /src/os/unix/ngx_process.c
parentf4d00a96acd56fb0d41233f5f1346f051528129a (diff)
downloadnginx-b39bc1ccbddbcd1a3f0d3972c2ab04762b2d580d.tar.gz
nginx-b39bc1ccbddbcd1a3f0d3972c2ab04762b2d580d.tar.bz2
Merge of r4422:
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/os/unix/ngx_process.c')
0 files changed, 0 insertions, 0 deletions