comparison src/http/modules/ngx_http_realip_module.c @ 2049:2a92804f4109

*) back out r2040 *) refactor ngx_palloc() *) introduce ngx_pnalloc() *) additional pool blocks have smaller header
author Igor Sysoev <igor@sysoev.ru>
date Tue, 17 Jun 2008 15:00:30 +0000
parents b590a528fd41
children 29d26406e1bd
comparison
equal deleted inserted replaced
2048:824615f3b4ec 2049:2a92804f4109
161 161
162 if (addr == INADDR_NONE) { 162 if (addr == INADDR_NONE) {
163 return NGX_DECLINED; 163 return NGX_DECLINED;
164 } 164 }
165 165
166 p = ngx_palloc(r->connection->pool, len); 166 p = ngx_pnalloc(r->connection->pool, len);
167 if (p == NULL) { 167 if (p == NULL) {
168 return NGX_HTTP_INTERNAL_SERVER_ERROR; 168 return NGX_HTTP_INTERNAL_SERVER_ERROR;
169 } 169 }
170 170
171 ngx_memcpy(p, ip, len); 171 ngx_memcpy(p, ip, len);