1
0
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:
oddsock 2004-11-16 04:27:00 +00:00
parent 083f5c0cd1
commit 241dd76291

View File

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