mirror of
https://github.com/emikulic/darkhttpd.git
synced 2023-08-10 21:13:08 +03:00
Fix bug in handling of bad requests.
This commit is contained in:
parent
b57eb17d47
commit
c1cd3d0e2d
@ -2168,7 +2168,7 @@ static void process_request(struct connection *conn) {
|
||||
"You sent a request that the server couldn't understand.");
|
||||
}
|
||||
/* fail if: (auth_enabled) AND (client supplied invalid credentials) */
|
||||
if (auth_key != NULL &&
|
||||
else if (auth_key != NULL &&
|
||||
(conn->authorization == NULL ||
|
||||
strcmp(conn->authorization, auth_key)))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user