]> git.kaiwu.me - nginx.git/commitdiff
r2581 merge:
authorIgor Sysoev <igor@sysoev.ru>
Wed, 1 Apr 2009 16:36:47 +0000 (16:36 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Wed, 1 Apr 2009 16:36:47 +0000 (16:36 +0000)
test wildcard tail hash existance

src/http/ngx_http.c

index deb3636a41778d340a55dd83714c4c53bd9daffb..5e3c4009db433c91e5cddd70fda1c604e06bc6ba 100644 (file)
@@ -896,8 +896,8 @@ ngx_http_block(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
                 if (in_addr[i].hash.buckets == NULL
                     && (in_addr[i].wc_head == NULL
                         || in_addr[i].wc_head->hash.buckets == NULL)
-                    && (in_addr[i].wc_head == NULL
-                        || in_addr[i].wc_head->hash.buckets == NULL))
+                    && (in_addr[i].wc_tail == NULL
+                        || in_addr[i].wc_tail->hash.buckets == NULL))
                 {
                     continue;
                 }