mirror of
https://github.com/nginx/nginx.git
synced 2026-08-28 04:39:05 +00:00
fix zero size shared zones
This commit is contained in:
parent
f250a6dfba
commit
14110b311c
1 changed files with 7 additions and 0 deletions
|
|
@ -366,6 +366,13 @@ ngx_init_cycle(ngx_cycle_t *old_cycle)
|
|||
i = 0;
|
||||
}
|
||||
|
||||
if (shm_zone[i].shm.size == 0) {
|
||||
ngx_log_error(NGX_LOG_EMERG, log, 0,
|
||||
"zero size shared memory zone \"%V\"",
|
||||
&shm_zone[i].name);
|
||||
goto failed;
|
||||
}
|
||||
|
||||
shm_zone[i].shm.log = cycle->log;
|
||||
|
||||
opart = &old_cycle->shared_memory.part;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue