mirror of
https://github.com/nginx/nginx.git
synced 2024-12-20 06:03:31 -06:00
fix segfault
This commit is contained in:
parent
11ab73e538
commit
a40caa172c
@ -1462,6 +1462,12 @@ ngx_http_charset_merge_loc_conf(ngx_conf_t *cf, void *parent, void *child)
|
||||
return NGX_CONF_OK;
|
||||
}
|
||||
|
||||
if (conf->source_charset >= NGX_HTTP_CHARSET_VAR
|
||||
|| conf->charset >= NGX_HTTP_CHARSET_VAR)
|
||||
{
|
||||
return NGX_CONF_OK;
|
||||
}
|
||||
|
||||
mcf = ngx_http_conf_get_module_main_conf(cf,
|
||||
ngx_http_charset_filter_module);
|
||||
recode = mcf->recodes.elts;
|
||||
|
Loading…
Reference in New Issue
Block a user