[xiph-commits] r10008 - icecast/trunk/icecast/src

msmith at svn.xiph.org msmith at svn.xiph.org
Sat Sep 10 09:56:07 PDT 2005


Author: msmith
Date: 2005-09-10 09:56:04 -0700 (Sat, 10 Sep 2005)
New Revision: 10008

Modified:
   icecast/trunk/icecast/src/auth.c
Log:
Patch from martin at matuska.org: don't treat all clients as duplicates.


Modified: icecast/trunk/icecast/src/auth.c
===================================================================
--- icecast/trunk/icecast/src/auth.c	2005-09-08 14:45:56 UTC (rev 10007)
+++ icecast/trunk/icecast/src/auth.c	2005-09-10 16:56:04 UTC (rev 10008)
@@ -238,8 +238,9 @@
         node = avl_get_first (source->client_tree);
         while (node)
         {   
-            client_t *client = (client_t *)node->key;
-            if (client->username && strcmp (client->username, client->username) == 0)
+            client_t *existing_client = (client_t *)node->key;
+            if (existing_client->username && 
+                    strcmp (existing_client->username, client->username) == 0)
             {
                 avl_tree_unlock (source->client_tree);
                 return 0;
@@ -252,8 +253,9 @@
         node = avl_get_first (source->pending_tree);
         while (node)
         {
-            client_t *client = (client_t *)node->key;
-            if (client->username && strcmp (client->username, client->username) == 0)
+            client_t *existing_client = (client_t *)node->key;
+            if (existing_client->username && 
+                    strcmp (existing_client->username, client->username) == 0)
             {
                 avl_tree_unlock (source->pending_tree);
                 return 0;



More information about the commits mailing list