Core: fixed error handling in ngx_reopen_files().

Found by Coverity (CID 1087509).
This commit is contained in:
Maxim Dounin 2014-04-30 19:16:40 +04:00
parent 17dad56e4e
commit 60169aa3a1

View File

@ -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;
}
}
}