Skip to content
Snippets Groups Projects
Commit ba9a4452 authored by Adrien Béraud's avatar Adrien Béraud
Browse files

securedht: clenup

parent 056bc285
No related branches found
No related tags found
No related merge requests found
...@@ -228,7 +228,7 @@ SecureDht::findPublicKey(const InfoHash& node, const std::function<void(const Sp ...@@ -228,7 +228,7 @@ SecureDht::findPublicKey(const InfoHash& node, const std::function<void(const Sp
cb(pk); cb(pk);
return; return;
} }
findCertificate(node, [=](const Sp<crypto::Certificate> crt) { findCertificate(node, [=](const Sp<crypto::Certificate>& crt) {
if (crt && *crt) { if (crt && *crt) {
auto pk = std::make_shared<crypto::PublicKey>(crt->getPublicKey()); auto pk = std::make_shared<crypto::PublicKey>(crt->getPublicKey());
if (*pk) { if (*pk) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment