Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nginx/nginx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2008-08-21 16:56:10 +0400
committerIgor Sysoev <igor@sysoev.ru>2008-08-21 16:56:10 +0400
commitb29426deb80b1338b3851e748468659edb1e3dd1 (patch)
tree2783e2cf5cb03ecdd5c75580dba347456d78dccd /src/core
parent027095a77e9265a366e87d87927835a97e71d447 (diff)
server_name "" support
Diffstat (limited to 'src/core')
-rw-r--r--src/core/ngx_hash.c4
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);