diff options
author | Igor Sysoev <igor@sysoev.ru> | 2009-11-02 14:32:46 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2009-11-02 14:32:46 +0000 |
commit | 67765e89188c58fba8b70605bf8da742666e7d7e (patch) | |
tree | feccf948416b095ffe965ccecf979ba8650a97cb /src/http/ngx_http_variables.c | |
parent | 0f25ed3d779e3d31aff3c9484c77ccb8353fcdf4 (diff) | |
download | nginx-67765e89188c58fba8b70605bf8da742666e7d7e.tar.gz nginx-67765e89188c58fba8b70605bf8da742666e7d7e.zip |
use sin6_addr.s6_addr instead of "(u_char *) & .sin6_addr"
Diffstat (limited to 'src/http/ngx_http_variables.c')
-rw-r--r-- | src/http/ngx_http_variables.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/ngx_http_variables.c b/src/http/ngx_http_variables.c index b25e64889..a8f5d96c8 100644 --- a/src/http/ngx_http_variables.c +++ b/src/http/ngx_http_variables.c @@ -887,7 +887,7 @@ ngx_http_variable_binary_remote_addr(ngx_http_request_t *r, v->valid = 1; v->no_cacheable = 0; v->not_found = 0; - v->data = (u_char *) &sin6->sin6_addr; + v->data = sin6->sin6_addr.s6_addr; break; #endif |