X-Git-Url: http://www.dolda2000.com/gitweb/?p=ashd.git;a=blobdiff_plain;f=src%2Fhtextauth.c;h=f20c77609d6ca03e68fa0ae94d8e4e462fe73403;hp=27217e01e1bbf0dc41b8ac4f8d1287c3366b46e5;hb=b4fda020a4507a33abc22f7678288e2f92db3a4e;hpb=baaabaf72db3a414319824ced4ff99292801a06a diff --git a/src/htextauth.c b/src/htextauth.c index 27217e0..f20c776 100644 --- a/src/htextauth.c +++ b/src/htextauth.c @@ -147,11 +147,11 @@ static void serve(struct hthead *req, int fd) size_t declen; now = time(NULL); + dec = NULL; if(reqssl && (((raw = getheader(req, "X-Ash-Protocol")) == NULL) || strcmp(raw, "https"))) { simpleerror(fd, 403, "Forbidden", "The requested resource must be requested over HTTPS."); goto out; } - dec = NULL; if(((raw = getheader(req, "Authorization")) == NULL) || strncasecmp(raw, "basic ", 6)) { reqauth(req, fd); goto out;