diff --git a/src/core/worker.c b/src/core/worker.c index b8a0a67..fd279f5 100644 --- a/src/core/worker.c +++ b/src/core/worker.c @@ -31,7 +31,7 @@ static cws_vhost_s *get_vhost(cws_config_s *config, char *host) { for (unsigned i = 0; i < config->virtual_hosts_count; ++i) { cws_vhost_s *vh = config->virtual_hosts; if (!strcmp(vh[i].domain, host)) { - return vh; + return &vh[i]; } }