Commit 7e15841b authored by Sébastien Blin's avatar Sébastien Blin
Browse files

conversationrepository: fix pointer check

Change-Id: I0f0a926996d34ae22051f0247e36575ab755d0ba
parent 04ec59a1
......@@ -1101,10 +1101,12 @@ ConversationRepository::Impl::isValidUserAtCommit(const std::string& userDevice,
const std::string& commitId) const
auto cert = tls::CertificateStore::instance().getCertificate(userDevice);
if (not cert)
return false;
auto userUri = cert->getIssuerUID();
auto parentCrt = tls::CertificateStore::instance().getCertificate(userUri);
auto repo = repository();
if (!cert || !parentCrt || !repo)
if (not parentCrt or not repo)
return false;
// Retrieve tree for commit
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment