summaryrefslogtreecommitdiff
path: root/daemon/httpauthd.c
diff options
context:
space:
mode:
authorStef Walter <stef@memberwebs.com>2004-04-25 05:50:07 +0000
committerStef Walter <stef@memberwebs.com>2004-04-25 05:50:07 +0000
commit570c17aa3bb6a39030ebefc5618f0c3fa8cf0089 (patch)
tree34fd08eb06f92c4aadec308151ddc8fc80dcab08 /daemon/httpauthd.c
parent36ab0775e1c5ec4352f36074cea8bfbe49302b80 (diff)
Debugging of simple authentication handler
Diffstat (limited to 'daemon/httpauthd.c')
-rw-r--r--daemon/httpauthd.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/daemon/httpauthd.c b/daemon/httpauthd.c
index a2985a3..465ac68 100644
--- a/daemon/httpauthd.c
+++ b/daemon/httpauthd.c
@@ -68,7 +68,7 @@ const char* kAuthHeaders[] =
/* The command definitions */
const httpauth_command_t kCommands[] =
{
- { "auth", REQTYPE_AUTH, 3, kAuthHeaders },
+ { "auth", REQTYPE_AUTH, 4, kAuthHeaders },
{ "quit", REQTYPE_QUIT, 0, 0 },
{ NULL, -1, -1 }
};
@@ -434,6 +434,12 @@ int httpauth_read(int ifd, ha_request_t* req,
}
}
+ else
+ {
+ req->type = REQTYPE_IGNORE;
+ return more;
+ }
+
/* Check for invalid command */
if(req->type == -1)
return more;
@@ -734,6 +740,8 @@ int httpauth_processor(int ifd, int ofd)
result = 0;
break;
+ case REQTYPE_IGNORE:
+ break;
default:
if(httpauth_respond(ofd, HA_SERVER_BADREQ, "Unknown command") == -1)