mirror of
https://gitlab.xiph.org/xiph/icecast-server.git
synced 2024-12-04 14:46:30 -05:00
need to fail properly
svn path=/icecast/trunk/icecast/; revision=8206
This commit is contained in:
parent
083f5c0cd1
commit
241dd76291
@ -460,6 +460,8 @@ int fserve_client_create(client_t *httpclient, char *path)
|
||||
bytes = sock_write(httpclient->con->sock,
|
||||
"HTTP/1.0 416 Request Range Not Satisfiable\r\n\r\n");
|
||||
if(bytes > 0) httpclient->con->sent_bytes = bytes;
|
||||
fserve_client_destroy(httpclient);
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
else {
|
||||
@ -469,6 +471,8 @@ int fserve_client_create(client_t *httpclient, char *path)
|
||||
bytes = sock_write(httpclient->con->sock,
|
||||
"HTTP/1.0 416 Request Range Not Satisfiable\r\n\r\n");
|
||||
if(bytes > 0) httpclient->con->sent_bytes = bytes;
|
||||
fserve_client_destroy(httpclient);
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
Loading…
Reference in New Issue
Block a user