From d414210e1c82bdf899c1fced77e14cfa3c6e86f1 Mon Sep 17 00:00:00 2001 From: Alfonso Abella Date: Fri, 13 Dec 2024 13:19:52 +0100 Subject: [PATCH] Retrieve Cu25519 pub key instead of the signature --- src/megaclient.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/megaclient.cpp b/src/megaclient.cpp index e234ab0f54..23ee48d0e2 100644 --- a/src/megaclient.cpp +++ b/src/megaclient.cpp @@ -15756,7 +15756,7 @@ error MegaClient::trackSignature(attr_t signatureType, handle uh, const std::str if (signatureType == ATTR_SIG_CU255_PUBK) { // retrieve public key whose signature wants to be verified, from cache - const UserAttribute* attribute = user->getAttribute(signatureType); + const UserAttribute* attribute = user->getAttribute(ATTR_CU25519_PUBK); if (!attribute || !attribute->isValid()) { LOG_warn << "Failed to verify signature " << User::attr2string(signatureType) << " for user " << uid << ": CU25519 public key is not available";