Commit 241dd762 authored by Ed "oddsock" Zaleski's avatar Ed "oddsock" Zaleski

need to fail properly

svn path=/icecast/trunk/icecast/; revision=8206
parent 083f5c0c
......@@ -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 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment