diff options
author | Igor Sysoev <igor@sysoev.ru> | 2009-02-23 21:05:10 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2009-02-23 21:05:10 +0000 |
commit | 2d95c82f919a597918918714cda59b5784a12edc (patch) | |
tree | 8371951893384c3c16f13e8777066ac45b2159c4 /src/http/ngx_http_core_module.c | |
parent | b5a17c727ca81a99aabf88a41e9a2d5b61ad313b (diff) | |
download | nginx-2d95c82f919a597918918714cda59b5784a12edc.tar.gz nginx-2d95c82f919a597918918714cda59b5784a12edc.zip |
axe r->in_addr
Diffstat (limited to 'src/http/ngx_http_core_module.c')
-rw-r--r-- | src/http/ngx_http_core_module.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/http/ngx_http_core_module.c b/src/http/ngx_http_core_module.c index 22a81dbb0..bf5d48390 100644 --- a/src/http/ngx_http_core_module.c +++ b/src/http/ngx_http_core_module.c @@ -1776,7 +1776,6 @@ ngx_http_server_addr(ngx_http_request_t *r, ngx_str_t *s) { socklen_t len; ngx_connection_t *c; - struct sockaddr_in *sin; u_char sa[NGX_SOCKADDRLEN]; c = r->connection; @@ -1799,9 +1798,6 @@ ngx_http_server_addr(ngx_http_request_t *r, ngx_str_t *s) ngx_memcpy(c->local_sockaddr, &sa, len); } - sin = (struct sockaddr_in *) c->local_sockaddr; - r->in_addr = sin->sin_addr.s_addr; - if (s == NULL) { return NGX_OK; } @@ -2065,7 +2061,6 @@ ngx_http_subrequest(ngx_http_request_t *r, c->data = sr; } - sr->in_addr = r->in_addr; sr->port = r->port; sr->port_text = r->port_text; |