Fix bug in handling of bad requests.

This commit is contained in:
Emil Mikulic 2021-01-17 22:11:54 +11:00
parent b57eb17d47
commit c1cd3d0e2d

View File

@ -2168,7 +2168,7 @@ static void process_request(struct connection *conn) {
"You sent a request that the server couldn't understand."); "You sent a request that the server couldn't understand.");
} }
/* fail if: (auth_enabled) AND (client supplied invalid credentials) */ /* fail if: (auth_enabled) AND (client supplied invalid credentials) */
if (auth_key != NULL && else if (auth_key != NULL &&
(conn->authorization == NULL || (conn->authorization == NULL ||
strcmp(conn->authorization, auth_key))) strcmp(conn->authorization, auth_key)))
{ {