Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
savoirfairelinux
jami-daemon
Commits
7e15841b
Commit
7e15841b
authored
Jul 08, 2021
by
Sébastien Blin
Browse files
conversationrepository: fix pointer check
Change-Id: I0f0a926996d34ae22051f0247e36575ab755d0ba
parent
04ec59a1
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/jamidht/conversationrepository.cpp
View file @
7e15841b
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment