]> git.kaiwu.me - nginx.git/commitdiff
aligned ngx_crc32_table_short was allocated from wrong pool
authorIgor Sysoev <igor@sysoev.ru>
Fri, 20 Oct 2006 12:22:39 +0000 (12:22 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Fri, 20 Oct 2006 12:22:39 +0000 (12:22 +0000)
src/core/nginx.c

index 0449241cbfeb31ff7a3ea20a9c60e54b27090912..a3f9ce3d8448c878511884530c76253e1d200d16 100644 (file)
@@ -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);