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	Mon Nov 02 13:51:10 2009 +0000
+++ b/src/http/ngx_http_variables.c	Mon Nov 02 14:32:46 2009 +0000
@@ -887,7 +887,7 @@
         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