[nginx] svn commit: r4984 - trunk/src/core

ru at nginx.com ru at nginx.com
Sat Dec 22 20:03:39 UTC 2012


Author: ru
Date: 2012-12-22 20:03:38 +0000 (Sat, 22 Dec 2012)
New Revision: 4984
URL: http://trac.nginx.org/nginx/changeset/4984/nginx

Log:
Properly initialize "struct in6_addr" with zeroes.


Modified:
   trunk/src/core/ngx_inet.c

Modified: trunk/src/core/ngx_inet.c
===================================================================
--- trunk/src/core/ngx_inet.c	2012-12-21 16:13:03 UTC (rev 4983)
+++ trunk/src/core/ngx_inet.c	2012-12-22 20:03:38 UTC (rev 4984)
@@ -465,7 +465,7 @@
      * prevent MSVC8 warning:
      *    potentially uninitialized local variable 'inaddr6' used
      */
-    ngx_memzero(inaddr6.s6_addr, sizeof(struct in6_addr));
+    ngx_memzero(&inaddr6, sizeof(struct in6_addr));
 #endif
 
     inaddr = ngx_inet_addr(text, len);



More information about the nginx-devel mailing list