Commit 8ec568d5 authored by Karl Heyes's avatar Karl Heyes

fix possible bad pointer dereference bug when processing new clients

svn path=/icecast/trunk/icecast/; revision=11005
parent 043bff36
......@@ -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
......
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