mirror of
https://github.com/nginx/nginx.git
synced 2026-08-27 04:07:18 +00:00
Core: fixed error handling in ngx_reopen_files().
Found by Coverity (CID 1087509).
This commit is contained in:
parent
17dad56e4e
commit
60169aa3a1
1 changed files with 6 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue