]> git.kaiwu.me - nginx.git/commitdiff
test wildcard tail hash existance for IPv6 addresses,
authorIgor Sysoev <igor@sysoev.ru>
Sun, 12 Dec 2010 21:10:59 +0000 (21:10 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Sun, 12 Dec 2010 21:10:59 +0000 (21:10 +0000)
the same fix for IPv4 addresses has been made in r2581

src/http/ngx_http.c

index 0cebf29c0e05bc13c442222ae65b2a1a56a8e8b9..9ca52b90285db8ce7422bd8beb5a664a74199b4e 100644 (file)
@@ -1870,8 +1870,8 @@ ngx_http_add_addrs6(ngx_conf_t *cf, ngx_http_port_t *hport,
         if (addr[i].hash.buckets == NULL
             && (addr[i].wc_head == NULL
                 || addr[i].wc_head->hash.buckets == NULL)
-            && (addr[i].wc_head == NULL
-                || addr[i].wc_head->hash.buckets == NULL))
+            && (addr[i].wc_tail == NULL
+                || addr[i].wc_tail->hash.buckets == NULL))
         {
             continue;
         }