check for leading '/' in http request
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3582 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -459,8 +459,10 @@ handle_tcp(struct descr *d, int index, int min_free)
|
|||||||
kdc_log(0, "Failed to allocate %u bytes", strlen(t));
|
kdc_log(0, "Failed to allocate %u bytes", strlen(t));
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
if(*t == '/')
|
||||||
|
t++;
|
||||||
len = base64_decode(t, data);
|
len = base64_decode(t, data);
|
||||||
if(len < 0){
|
if(len <= 0){
|
||||||
const char *msg =
|
const char *msg =
|
||||||
"HTTP/1.1 404 Not found\r\n"
|
"HTTP/1.1 404 Not found\r\n"
|
||||||
"Server: Heimdal/" VERSION "\r\n"
|
"Server: Heimdal/" VERSION "\r\n"
|
||||||
|
Reference in New Issue
Block a user