changeset 3824:4ee02b872591

test wildcard tail hash existance for IPv6 addresses, the same fix for IPv4 addresses has been made in r2581
author Igor Sysoev <igor@sysoev.ru>
date Sun, 12 Dec 2010 21:10:59 +0000
parents b1add8bfad83
children 3770119af0b5
files src/http/ngx_http.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/http/ngx_http.c
+++ b/src/http/ngx_http.c
@@ -1870,8 +1870,8 @@ ngx_http_add_addrs6(ngx_conf_t *cf, ngx_
         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;
         }