1
0
mirror of https://gitlab.xiph.org/xiph/icecast-server.git synced 2025-01-03 14:56:34 -05:00

fix possible bad pointer dereference bug when processing new clients

svn path=/icecast/trunk/icecast/; revision=11005
This commit is contained in:
Karl Heyes 2006-03-15 02:30:26 +00:00
parent 043bff364c
commit 8ec568d5b5

View File

@ -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