diff options
author | Igor Sysoev <igor@sysoev.ru> | 2008-08-21 16:56:10 +0400 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2008-08-21 16:56:10 +0400 |
commit | b29426deb80b1338b3851e748468659edb1e3dd1 (patch) | |
tree | 2783e2cf5cb03ecdd5c75580dba347456d78dccd /src/core | |
parent | 027095a77e9265a366e87d87927835a97e71d447 (diff) |
server_name "" support
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/ngx_hash.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/ngx_hash.c b/src/core/ngx_hash.c index d36b142b9..dd28e7c37 100644 --- a/src/core/ngx_hash.c +++ b/src/core/ngx_hash.c @@ -220,6 +220,10 @@ ngx_hash_find_combined(ngx_hash_combined_t *hash, ngx_uint_t key, u_char *name, } } + 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); |