From ddc0d494c61a768563241ffe6959b8697e1a6f0a Mon Sep 17 00:00:00 2001 From: Johan Danielsson Date: Thu, 9 Oct 1997 22:39:38 +0000 Subject: [PATCH] check for leading '/' in http request git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3582 ec53bebd-3082-4978-b11e-865c3cabbd6b --- kdc/connect.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kdc/connect.c b/kdc/connect.c index b3f351f9c..dc2a86956 100644 --- a/kdc/connect.c +++ b/kdc/connect.c @@ -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"