Commit 73401b80 authored by Karl Heyes's avatar Karl Heyes

prevent NULL dereference

svn path=/icecast/trunk/icecast/; revision=14307
parent 02cc6c5f
......@@ -418,13 +418,14 @@ static int add_authenticated_listener (const char *mount, mount_proxy *mountinfo
if (source)
{
if (check_duplicate_logins (source, client, mountinfo->auth) == 0)
{
avl_tree_unlock (global.source_tree);
return -1;
}
if (mountinfo)
{
if (check_duplicate_logins (source, client, mountinfo->auth) == 0)
{
avl_tree_unlock (global.source_tree);
return -1;
}
/* set a per-mount disconnect time if auth hasn't set one already */
if (mountinfo->max_listener_duration && client->con->discon_time == 0)
client->con->discon_time = time(NULL) + mountinfo->max_listener_duration;
......
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