test wildcard tail hash existance
diff --git a/src/http/ngx_http.c b/src/http/ngx_http.c
index d519bf9..dd33169 100644
--- a/src/http/ngx_http.c
+++ b/src/http/ngx_http.c
@@ -1805,8 +1805,8 @@
         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;
         }