From 3166d286c63ff00b68659492175b2bd59290bce0 Mon Sep 17 00:00:00 2001 From: Andrea Gianarda <andrea.gianarda@belledonne-communications.com> Date: Tue, 29 Aug 2023 15:05:33 +0200 Subject: [PATCH] Check that lime manager has been correctly instantiated before searching for the ZRTP auxiliary secrets --- src/chat/encryption/lime-x3dh-encryption-engine.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/chat/encryption/lime-x3dh-encryption-engine.cpp b/src/chat/encryption/lime-x3dh-encryption-engine.cpp index 39c2ac9d0a..5e356bf330 100644 --- a/src/chat/encryption/lime-x3dh-encryption-engine.cpp +++ b/src/chat/encryption/lime-x3dh-encryption-engine.cpp @@ -722,12 +722,12 @@ list<EncryptionParameter> LimeX3dhEncryptionEngine::getEncryptionParameters(cons const auto &contactAddress = account->getContactAddress(); if (!contactAddress) { lWarning() - << "[LIME] No contactAddress available, unable to setup identity key for ZRTP auxiliary shared secret"; + << "[LIME] No contactAddress available for account " << account << ", unable to setup identity key for ZRTP auxiliary shared secret"; return {}; } + string localDeviceId = contactAddress->asStringUriOnly(); vector<uint8_t> Ik; - try { limeManager->get_selfIdentityKey(localDeviceId, Ik); } catch (const exception &e) { -- GitLab