diff src/http/ngx_http_variables.c @ 3268:c6a40c815d45

use sin6_addr.s6_addr instead of "(u_char *) & .sin6_addr"
author Igor Sysoev <igor@sysoev.ru>
date Mon, 02 Nov 2009 14:32:46 +0000
parents ecbfc3396c42
children c76b7a7959d5
line wrap: on
line diff
--- 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
         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