mirror of
https://gitlab.xiph.org/xiph/icecast-server.git
synced 2024-12-04 14:46:30 -05:00
proper config file handling...
svn path=/icecast/trunk/icecast/; revision=6615
This commit is contained in:
parent
15b9c16c1c
commit
e597b63c6a
@ -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,
|
||||
@ -626,9 +627,9 @@ static void command_buildm3u(client_t *client, source_t *source,
|
||||
port,
|
||||
source->mount
|
||||
);
|
||||
|
||||
|
||||
free(host);
|
||||
client_destroy(client);
|
||||
config_release_config();
|
||||
}
|
||||
static void command_manageauth(client_t *client, source_t *source,
|
||||
int response)
|
||||
|
Loading…
Reference in New Issue
Block a user