fix segfault if no server_name was defined

This commit is contained in:
Igor Sysoev 2007-10-17 13:22:26 +00:00
parent 5cb097c5b0
commit 12446d8249

View File

@ -2292,9 +2292,12 @@ ngx_http_core_merge_srv_conf(ngx_conf_t *cf, void *parent, void *child)
return NGX_CONF_ERROR;
}
#if (NGX_PCRE)
sn->regex = NULL;
#endif
sn->core_srv_conf = conf;
sn->name.len = conf->server_name.len;
sn->name.data = conf->server_name.data;
sn->core_srv_conf = conf;
}
ngx_conf_merge_size_value(conf->connection_pool_size,