Commit e597b63c authored by Ed "oddsock" Zaleski's avatar Ed "oddsock" Zaleski

proper config file handling...

svn path=/icecast/trunk/icecast/; revision=6615
parent 15b9c16c
......@@ -611,8 +611,9 @@ static void command_buildm3u(client_t *client, source_t *source,
COMMAND_REQUIRE(client, "password", password);
config = config_get_config();
host = config->hostname;
host = strdup(config->hostname);
port = config->port;
config_release_config();
client->respcode = 200;
sock_write(client->con->sock,
......@@ -627,8 +628,8 @@ static void command_buildm3u(client_t *client, source_t *source,
source->mount
);
free(host);
client_destroy(client);
config_release_config();
}
static void command_manageauth(client_t *client, source_t *source,
int response)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment