From 65bbb975d26f210924844955a7195895d520e34a Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 4 Dec 2019 16:59:01 +0100 Subject: [PATCH] command/fingerprint: fix inverted check --- src/command/FingerprintCommands.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/command/FingerprintCommands.cxx b/src/command/FingerprintCommands.cxx index 9b687df71..559593fa4 100644 --- a/src/command/FingerprintCommands.cxx +++ b/src/command/FingerprintCommands.cxx @@ -345,7 +345,7 @@ handle_getfingerprint(Client &client, Request args, Response &) lu.path = storage->MapFS(lu.canonical_uri); if (lu.path.IsNull()) { uri = storage->MapUTF8(lu.canonical_uri); - if (uri_has_scheme(uri.c_str())) + if (!uri_has_scheme(uri.c_str())) throw ProtocolError(ACK_ERROR_NO_EXIST, "No such song"); } }