mirror of
https://gitlab.xiph.org/xiph/icecast-server.git
synced 2024-12-04 14:46:30 -05:00
Patch from martin@matuska.org: don't treat all clients as duplicates.
svn path=/icecast/trunk/icecast/; revision=10008
This commit is contained in:
parent
8566e67814
commit
6d108c6aad
10
src/auth.c
10
src/auth.c
@ -238,8 +238,9 @@ static int check_duplicate_logins (source_t *source, client_t *client)
|
|||||||
node = avl_get_first (source->client_tree);
|
node = avl_get_first (source->client_tree);
|
||||||
while (node)
|
while (node)
|
||||||
{
|
{
|
||||||
client_t *client = (client_t *)node->key;
|
client_t *existing_client = (client_t *)node->key;
|
||||||
if (client->username && strcmp (client->username, client->username) == 0)
|
if (existing_client->username &&
|
||||||
|
strcmp (existing_client->username, client->username) == 0)
|
||||||
{
|
{
|
||||||
avl_tree_unlock (source->client_tree);
|
avl_tree_unlock (source->client_tree);
|
||||||
return 0;
|
return 0;
|
||||||
@ -252,8 +253,9 @@ static int check_duplicate_logins (source_t *source, client_t *client)
|
|||||||
node = avl_get_first (source->pending_tree);
|
node = avl_get_first (source->pending_tree);
|
||||||
while (node)
|
while (node)
|
||||||
{
|
{
|
||||||
client_t *client = (client_t *)node->key;
|
client_t *existing_client = (client_t *)node->key;
|
||||||
if (client->username && strcmp (client->username, client->username) == 0)
|
if (existing_client->username &&
|
||||||
|
strcmp (existing_client->username, client->username) == 0)
|
||||||
{
|
{
|
||||||
avl_tree_unlock (source->pending_tree);
|
avl_tree_unlock (source->pending_tree);
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user