mirror of
https://gitlab.xiph.org/xiph/icecast-server.git
synced 2024-12-04 14:46:30 -05:00
Fix nasty bug in file serving code, would probably have made it fail with
multiple simultaneous requests. svn path=/trunk/icecast/; revision=5764
This commit is contained in:
parent
8a78baa149
commit
d668d4dfa6
@ -414,8 +414,11 @@ int fserve_client_create(client_t *httpclient, char *path)
|
||||
|
||||
static int _compare_clients(void *compare_arg, void *a, void *b)
|
||||
{
|
||||
connection_t *cona = (connection_t *)a;
|
||||
connection_t *conb = (connection_t *)b;
|
||||
fserve_t *clienta = (fserve_t *)a;
|
||||
fserve_t *clientb = (fserve_t *)b;
|
||||
|
||||
connection_t *cona = clienta->client->con;
|
||||
connection_t *conb = clientb->client->con;
|
||||
|
||||
if (cona->id < conb->id) return -1;
|
||||
if (cona->id > conb->id) return 1;
|
||||
|
Loading…
Reference in New Issue
Block a user