mirror of
https://github.com/nginx/nginx.git
synced 2026-02-03 20:29:27 -05:00
Merge 473ce237c2 into 86e5930e76
This commit is contained in:
commit
4fb0ce3bdc
1 changed files with 7 additions and 5 deletions
|
|
@ -114,11 +114,13 @@ ngx_init_cycle(ngx_cycle_t *old_cycle)
|
|||
ngx_cpystrn(cycle->conf_file.data, old_cycle->conf_file.data,
|
||||
old_cycle->conf_file.len + 1);
|
||||
|
||||
cycle->conf_param.len = old_cycle->conf_param.len;
|
||||
cycle->conf_param.data = ngx_pstrdup(pool, &old_cycle->conf_param);
|
||||
if (cycle->conf_param.data == NULL) {
|
||||
ngx_destroy_pool(pool);
|
||||
return NULL;
|
||||
if (old_cycle->conf_param.data != NULL) {
|
||||
cycle->conf_param.len = old_cycle->conf_param.len;
|
||||
cycle->conf_param.data = ngx_pstrdup(pool, &old_cycle->conf_param);
|
||||
if (cycle->conf_param.data == NULL) {
|
||||
ngx_destroy_pool(pool);
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue