[mpd] Fix: allow password command when not authenticated

This commit is contained in:
gd 2023-05-21 15:45:36 +03:00 committed by ejurgensen
parent e1628ff1a9
commit 4b8ecfe18d
1 changed files with 1 additions and 1 deletions

View File

@ -4545,7 +4545,7 @@ mpd_process_command(char *line, struct evbuffer *output, int cmd_num, struct mpd
command->min_argc, argc); command->min_argc, argc);
mpd_err_code = ACK_ERROR_ARG; mpd_err_code = ACK_ERROR_ARG;
} }
else if (!client_ctx->authenticated) else if (!client_ctx->authenticated && strcmp(cmd_name, "password") != 0)
{ {
errmsg = safe_asprintf("Not authenticated"); errmsg = safe_asprintf("Not authenticated");
mpd_err_code = ACK_ERROR_PERMISSION; mpd_err_code = ACK_ERROR_PERMISSION;