diff options
author | Igor Sysoev <igor@sysoev.ru> | 2004-09-09 15:40:48 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2004-09-09 15:40:48 +0000 |
commit | 2e6ba93fa79cadf9ed2256992d7c8c4d512f2b1f (patch) | |
tree | 50dd328ad6dbd0d9a22a561f2f335ebfe098f1d0 /src/http/ngx_http_request.c | |
parent | 0d9da9b6c3c4842eade3034e6e1f3ea140d08d6d (diff) | |
download | nginx-2e6ba93fa79cadf9ed2256992d7c8c4d512f2b1f.tar.gz nginx-2e6ba93fa79cadf9ed2256992d7c8c4d512f2b1f.zip |
nginx-0.0.10-2004-09-09-19:40:48 import
Diffstat (limited to 'src/http/ngx_http_request.c')
-rw-r--r-- | src/http/ngx_http_request.c | 15 |
1 files changed, 0 insertions, 15 deletions
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; |