From 8ec568d5b51027a63d82ff431d9f31035bae978b Mon Sep 17 00:00:00 2001 From: Karl Heyes Date: Wed, 15 Mar 2006 02:30:26 +0000 Subject: [PATCH] fix possible bad pointer dereference bug when processing new clients svn path=/icecast/trunk/icecast/; revision=11005 --- src/connection.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/connection.c b/src/connection.c index f57d455c..f07fd8f5 100644 --- a/src/connection.c +++ b/src/connection.c @@ -117,6 +117,10 @@ void connection_initialize(void) 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 @@ static void process_request_queue (void) *node_ref = node->next; node->next = NULL; _add_connection (node); + continue; } } else