changeset 1675:c74e7fd0bcaf

zero ngx_url_t
author Igor Sysoev <igor@sysoev.ru>
date Fri, 30 Nov 2007 22:08:59 +0000
parents f2c87cba6596
children 447765dc6d67
files src/http/ngx_http_core_module.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/http/ngx_http_core_module.c	Fri Nov 30 22:08:29 2007 +0000
+++ b/src/http/ngx_http_core_module.c	Fri Nov 30 22:08:59 2007 +0000
@@ -3393,6 +3393,8 @@
 
     value = cf->args->elts;
 
+    ngx_memzero(&u, sizeof(ngx_url_t));
+
     u.host = value[1];
     u.port = 53;