From: Maxim Dounin Date: Wed, 30 Apr 2014 15:16:40 +0000 (+0400) Subject: Core: fixed error handling in ngx_reopen_files(). X-Git-Tag: release-1.7.1~31 X-Git-Url: http://www.kaiwu.me/postgresql/commit/?a=commitdiff_plain;h=60169aa3a1d2372c3806ad239d65a992d5230edb;p=nginx.git Core: fixed error handling in ngx_reopen_files(). Found by Coverity (CID 1087509). --- diff --git a/src/core/ngx_cycle.c b/src/core/ngx_cycle.c index d1a89ae1a..d69783fec 100644 --- a/src/core/ngx_cycle.c +++ b/src/core/ngx_cycle.c @@ -1104,6 +1104,8 @@ ngx_reopen_files(ngx_cycle_t *cycle, ngx_uid_t user) ngx_close_file_n " \"%s\" failed", file[i].name.data); } + + continue; } if (fi.st_uid != user) { @@ -1117,6 +1119,8 @@ ngx_reopen_files(ngx_cycle_t *cycle, ngx_uid_t user) ngx_close_file_n " \"%s\" failed", file[i].name.data); } + + continue; } } @@ -1133,6 +1137,8 @@ ngx_reopen_files(ngx_cycle_t *cycle, ngx_uid_t user) ngx_close_file_n " \"%s\" failed", file[i].name.data); } + + continue; } } }