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:
Johan Danielsson
1997-10-09 22:39:38 +00:00
parent c0896c4709
commit ddc0d494c6

View File

@@ -459,8 +459,10 @@ handle_tcp(struct descr *d, int index, int min_free)
kdc_log(0, "Failed to allocate %u bytes", strlen(t));
goto out;
}
if(*t == '/')
t++;
len = base64_decode(t, data);
if(len < 0){
if(len <= 0){
const char *msg =
"HTTP/1.1 404 Not found\r\n"
"Server: Heimdal/" VERSION "\r\n"