summaryrefslogtreecommitdiff
path: root/daemon/httpauthd.c
diff options
context:
space:
mode:
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)