0
0
mirror of https://gitlab.xiph.org/xiph/icecast-server.git synced 2025-06-30 22:18:19 -04:00

proper config file handling...

svn path=/icecast/trunk/icecast/; revision=6615
This commit is contained in:
oddsock 2004-05-03 14:56:57 +00:00
parent 15b9c16c1c
commit e597b63c6a

View File

@ -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,
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)