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:
parent
043bff364c
commit
8ec568d5b5
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user