From b29426deb80b1338b3851e748468659edb1e3dd1 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Thu, 21 Aug 2008 12:56:10 +0000 Subject: server_name "" support --- src/core/ngx_hash.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/core/ngx_hash.c') 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); -- cgit