From 2e6ba93fa79cadf9ed2256992d7c8c4d512f2b1f Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Thu, 9 Sep 2004 15:40:48 +0000 Subject: nginx-0.0.10-2004-09-09-19:40:48 import --- src/http/ngx_http_request.c | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'src/http/ngx_http_request.c') diff --git a/src/http/ngx_http_request.c b/src/http/ngx_http_request.c index dcf53d746..a1081af12 100644 --- a/src/http/ngx_http_request.c +++ b/src/http/ngx_http_request.c @@ -97,21 +97,6 @@ void ngx_http_init_connection(ngx_connection_t *c) ngx_event_t *rev; ngx_http_log_ctx_t *ctx; - c->addr_text.data = ngx_palloc(c->pool, c->listening->addr_text_max_len); - if (c->addr_text.data == NULL) { - ngx_http_close_connection(c); - return; - } - - c->addr_text.len = ngx_sock_ntop(c->listening->family, c->sockaddr, - c->addr_text.data, - c->listening->addr_text_max_len); - - if (c->addr_text.len == 0) { - ngx_http_close_connection(c); - return; - } - if (!(ctx = ngx_pcalloc(c->pool, sizeof(ngx_http_log_ctx_t)))) { ngx_http_close_connection(c); return; -- cgit v1.2.3