From 67765e89188c58fba8b70605bf8da742666e7d7e Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Mon, 2 Nov 2009 14:32:46 +0000 Subject: use sin6_addr.s6_addr instead of "(u_char *) & .sin6_addr" --- src/http/ngx_http_variables.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/http') 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 -- cgit