]> git.kaiwu.me - nginx.git/commitdiff
test wildcard tail hash existance
authorIgor Sysoev <igor@sysoev.ru>
Thu, 19 Mar 2009 15:46:27 +0000 (15:46 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Thu, 19 Mar 2009 15:46:27 +0000 (15:46 +0000)
src/http/ngx_http.c

index d519bf98173f6758c1fb7d22a43ca39daf92ab94..dd33169da31a491524f60f9c16f50490f4ac7ba8 100644 (file)
@@ -1805,8 +1805,8 @@ ngx_http_add_addrs(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;
         }