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, ...@@ -611,8 +611,9 @@ static void command_buildm3u(client_t *client, source_t *source,
COMMAND_REQUIRE(client, "password", password); COMMAND_REQUIRE(client, "password", password);
config = config_get_config(); config = config_get_config();
host = config->hostname; host = strdup(config->hostname);
port = config->port; port = config->port;
config_release_config();
client->respcode = 200; client->respcode = 200;
sock_write(client->con->sock, sock_write(client->con->sock,
...@@ -626,9 +627,9 @@ static void command_buildm3u(client_t *client, source_t *source, ...@@ -626,9 +627,9 @@ static void command_buildm3u(client_t *client, source_t *source,
port, port,
source->mount source->mount
); );
free(host);
client_destroy(client); client_destroy(client);
config_release_config();
} }
static void command_manageauth(client_t *client, source_t *source, static void command_manageauth(client_t *client, source_t *source,
int response) 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