]> git.kaiwu.me - nginx.git/commit
Core: improved ngx_conf_parse() error handling.
authorMaxim Dounin <mdounin@mdounin.ru>
Wed, 30 Apr 2014 15:16:49 +0000 (19:16 +0400)
committerMaxim Dounin <mdounin@mdounin.ru>
Wed, 30 Apr 2014 15:16:49 +0000 (19:16 +0400)
commitaa28897b22f1e5f6c2345545099bf815232b6a7b
tree2f1091c38950d205546f1cc727b4a14b865b259d
parent60169aa3a1d2372c3806ad239d65a992d5230edb
Core: improved ngx_conf_parse() error handling.

Previous code failed to properly restore cf->conf_file in case of
ngx_close_file() errors, potentially resulting in double free of
cf->conf_file->buffer->start.

Found by Coverity (CID 1087507).
src/core/ngx_conf_file.c