diff src/core/ngx_hash.c @ 2195:a953f73273ee

server_name "" support
author Igor Sysoev <igor@sysoev.ru>
date Thu, 21 Aug 2008 12:56:10 +0000
parents 80924319ba05
children 23706c19fab8
line wrap: on
line diff
--- a/src/core/ngx_hash.c
+++ b/src/core/ngx_hash.c
@@ -220,6 +220,10 @@ ngx_hash_find_combined(ngx_hash_combined
         }
     }
 
+    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);