commit | b29426deb80b1338b3851e748468659edb1e3dd1 | [log] [tgz] |
---|---|---|
author | Igor Sysoev <igor@sysoev.ru> | Thu Aug 21 12:56:10 2008 +0000 |
committer | Igor Sysoev <igor@sysoev.ru> | Thu Aug 21 12:56:10 2008 +0000 |
tree | 2783e2cf5cb03ecdd5c75580dba347456d78dccd | |
parent | 027095a77e9265a366e87d87927835a97e71d447 [diff] [blame] |
server_name "" support
diff --git a/src/core/ngx_hash.c b/src/core/ngx_hash.c index d36b142..dd28e7c 100644 --- a/src/core/ngx_hash.c +++ b/src/core/ngx_hash.c
@@ -220,6 +220,10 @@ } } + if (len == 0) { + return NULL; + } + if (hash->wc_head && hash->wc_head->hash.buckets) { value = ngx_hash_find_wc_head(hash->wc_head, name, len);