Commit cf797657 authored by Max Kellermann's avatar Max Kellermann

AllCommands: close connection after syntax error

Stop HTTP clients from exploiting MPD via forged POST requests.
parent c597538b
...@@ -8,6 +8,7 @@ ver 0.19 (not yet released) ...@@ -8,6 +8,7 @@ ver 0.19 (not yet released)
- "list" on album artist falls back to the artist tag - "list" on album artist falls back to the artist tag
- "list" and "count" allow grouping - "list" and "count" allow grouping
- new "search"/"find" filter "modified-since" - new "search"/"find" filter "modified-since"
- close connection after syntax error
* database * database
- proxy: forward "idle" events - proxy: forward "idle" events
- proxy: forward the "update" command - proxy: forward the "update" command
......
...@@ -369,7 +369,9 @@ command_process(Client &client, unsigned num, char *line) ...@@ -369,7 +369,9 @@ command_process(Client &client, unsigned num, char *line)
current_command = nullptr; current_command = nullptr;
return CommandResult::ERROR; /* this client does not speak the MPD protocol; kick
the connection */
return CommandResult::FINISH;
} }
unsigned argc = 1; unsigned argc = 1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment