mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-14 05:45:59 +03:00
Fixed: Nginx crash in ngx_pool_context.c
This commit is contained in:
parent
6934acf0e1
commit
86871ccab1
@ -200,7 +200,7 @@ ngx_pool_context_init_conf(ngx_cycle_t *cycle, void *conf)
|
||||
|
||||
ngx_pool_context_hash_size = pcf->size;
|
||||
|
||||
ngx_pool_context_hash = ngx_palloc(cycle->pool, sizeof(ngx_pool_context_node_t *) * ngx_pool_context_hash_size);
|
||||
ngx_pool_context_hash = ngx_pcalloc(cycle->pool, sizeof(ngx_pool_context_node_t *) * ngx_pool_context_hash_size);
|
||||
|
||||
if (ngx_pool_context_hash == NULL) {
|
||||
return NGX_CONF_ERROR;
|
||||
|
Loading…
x
Reference in New Issue
Block a user