From: Igor Sysoev Date: Sun, 12 Dec 2010 21:10:59 +0000 (+0000) Subject: test wildcard tail hash existance for IPv6 addresses, X-Git-Tag: release-0.9.3~3 X-Git-Url: http://git.kaiwu.me/sitemap.xml?a=commitdiff_plain;h=1fdb004f523a2581f1ddcbf4fbca2db125ee9687;p=nginx.git test wildcard tail hash existance for IPv6 addresses, the same fix for IPv4 addresses has been made in r2581 --- diff --git a/src/http/ngx_http.c b/src/http/ngx_http.c index 0cebf29c0..9ca52b902 100644 --- 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_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; }