From 4b8ecfe18df62523fdb06a1c0b10238e64f89b94 Mon Sep 17 00:00:00 2001 From: gd Date: Sun, 21 May 2023 15:45:36 +0300 Subject: [PATCH] [mpd] Fix: allow password command when not authenticated --- src/mpd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mpd.c b/src/mpd.c index 5538d2bd..dafea3bd 100644 --- a/src/mpd.c +++ b/src/mpd.c @@ -4545,7 +4545,7 @@ mpd_process_command(char *line, struct evbuffer *output, int cmd_num, struct mpd command->min_argc, argc); 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"); mpd_err_code = ACK_ERROR_PERMISSION;