[xiph-commits] r11005 - icecast/trunk/icecast/src
karl at svn.xiph.org
karl at svn.xiph.org
Tue Mar 14 18:30:29 PST 2006
Author: karl
Date: 2006-03-14 18:30:26 -0800 (Tue, 14 Mar 2006)
New Revision: 11005
Modified:
icecast/trunk/icecast/src/connection.c
Log:
fix possible bad pointer dereference bug when processing new clients
Modified: icecast/trunk/icecast/src/connection.c
===================================================================
--- icecast/trunk/icecast/src/connection.c 2006-03-15 02:24:57 UTC (rev 11004)
+++ icecast/trunk/icecast/src/connection.c 2006-03-15 02:30:26 UTC (rev 11005)
@@ -117,6 +117,10 @@
thread_mutex_create(&move_clients_mutex);
thread_rwlock_create(&_source_shutdown_rwlock);
thread_cond_create(&global.shutdown_cond);
+ _req_queue = NULL;
+ _req_queue_tail = &_req_queue;
+ _con_queue = NULL;
+ _con_queue_tail = &_con_queue;
_initialized = 1;
}
@@ -386,6 +390,7 @@
*node_ref = node->next;
node->next = NULL;
_add_connection (node);
+ continue;
}
}
else
More information about the commits
mailing list