changeset 2580:684ca3b0ae14

test wildcard tail hash existance
author Igor Sysoev <igor@sysoev.ru>
date Thu, 19 Mar 2009 15:46:27 +0000
parents 67fea87a6652
children b03e87048796
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
@@ -1805,8 +1805,8 @@ ngx_http_add_addrs(ngx_conf_t *cf, ngx_h
         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;
         }