diff --git a/include/opendht/securedht.h b/include/opendht/securedht.h index 801e3def..faddef7c 100644 --- a/include/opendht/securedht.h +++ b/include/opendht/securedht.h @@ -387,7 +387,7 @@ const ValueType CERTIFICATE_TYPE = { }, [](InfoHash, const Sp& o, Sp& n, const InfoHash&, const SockAddr&) { try { - return crypto::Certificate(o->data).getPublicKey().getId() == crypto::Certificate(n->data).getPublicKey().getId(); + return crypto::Certificate(o->data).getPublicKey().getLongId() == crypto::Certificate(n->data).getPublicKey().getLongId(); } catch (const std::exception& e) {} return false; }