aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2006-10-20 12:22:39 +0000
committerIgor Sysoev <igor@sysoev.ru>2006-10-20 12:22:39 +0000
commit3d0a7168a943a5c02928b832b5e27f5a2d928699 (patch)
tree0aef82f983d2f67c7c522f27ee4a7412865bc15c
parent2f73f772f1aceefb6f5e426c942190df76321296 (diff)
downloadnginx-3d0a7168a943a5c02928b832b5e27f5a2d928699.tar.gz
nginx-3d0a7168a943a5c02928b832b5e27f5a2d928699.zip
aligned ngx_crc32_table_short was allocated from wrong pool
-rw-r--r--src/core/nginx.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/nginx.c b/src/core/nginx.c
index 0449241cb..a3f9ce3d8 100644
--- a/src/core/nginx.c
+++ b/src/core/nginx.c
@@ -256,10 +256,6 @@ main(int argc, char *const *argv)
return 1;
}
- if (ngx_crc32_init(init_cycle.pool) != NGX_OK) {
- return 1;
- }
-
environ = &ngx_null_environ;
ngx_max_module = 0;
@@ -287,6 +283,10 @@ main(int argc, char *const *argv)
ngx_os_status(cycle->log);
+ if (ngx_crc32_init(cycle->pool) != NGX_OK) {
+ return 1;
+ }
+
ngx_cycle = cycle;
ccf = (ngx_core_conf_t *) ngx_get_conf(cycle->conf_ctx, ngx_core_module);