comparison src/core/ngx_cycle.c @ 3222:a4f264c43173

use lowcase only hostname
author Igor Sysoev <igor@sysoev.ru>
date Wed, 21 Oct 2009 17:04:13 +0000
parents 959fa3a11b03
children d4c4cfdffe30
comparison
equal deleted inserted replaced
3221:c8de5a8b6d17 3222:a4f264c43173
202 if (cycle->hostname.data == NULL) { 202 if (cycle->hostname.data == NULL) {
203 ngx_destroy_pool(pool); 203 ngx_destroy_pool(pool);
204 return NULL; 204 return NULL;
205 } 205 }
206 206
207 ngx_memcpy(cycle->hostname.data, hostname, cycle->hostname.len); 207 ngx_strlow(cycle->hostname.data, (u_char *) hostname, cycle->hostname.len);
208 208
209 209
210 for (i = 0; ngx_modules[i]; i++) { 210 for (i = 0; ngx_modules[i]; i++) {
211 if (ngx_modules[i]->type != NGX_CORE_MODULE) { 211 if (ngx_modules[i]->type != NGX_CORE_MODULE) {
212 continue; 212 continue;