1
0
mirror of https://gitlab.xiph.org/xiph/icecast-server.git synced 2025-02-02 15:07:36 -05:00

Fix various minor bugs in per-mountpoint configs.

svn path=/trunk/icecast/; revision=4385
This commit is contained in:
Michael Smith 2003-03-02 10:36:24 +00:00
parent a169380258
commit 5252a14068
3 changed files with 7 additions and 3 deletions

View File

@ -361,6 +361,8 @@ static void _parse_mount(xmlDocPtr doc, xmlNodePtr node)
else
_configuration.mounts = mount;
mount->max_listeners = -1;
do {
if (node == NULL) break;
if (xmlIsBlankNode(node)) continue;

View File

@ -434,7 +434,9 @@ static int _check_source_pass(http_parser_t *parser, char *mount)
mount_proxy *mountinfo = config_get_config()->mounts;
while(mountinfo) {
if(!strcmp(mountinfo->mountname, mount)) {
if(mountinfo->password)
pass = mountinfo->password;
if(mountinfo->username)
user = mountinfo->username;
break;
}
@ -803,7 +805,6 @@ static void _handle_get_request(connection_t *con,
return;
}
global.clients++;
source->listeners++;
global_unlock();
client->format_data = source->format->create_client_data(

View File

@ -74,6 +74,7 @@ source_t *source_create(client_t *client, connection_t *con,
src->running = 1;
src->num_yp_directories = 0;
src->listeners = 0;
src->max_listeners = -1;
src->send_return = 0;
src->dumpfilename = NULL;
src->dumpfile = NULL;