don't handle LeaseSet1 coming from ECIESx25519 session

This commit is contained in:
orignal committed 2026-10-11 20:08:00 -04:00
1 parent 6cee5c78fa
commit 21a7726916
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -455,7 +455,7 @@ namespace client
if (buf[DATABASE_STORE_TYPE_OFFSET] == i2p::data::NETDB_STORE_TYPE_LEASESET)
{
leaseSet = std::make_shared<i2p::data::LeaseSet> (buf + offset, len - offset); // LeaseSet
if (!SupportsEncryptionType (i2p::data::CRYPTO_KEY_TYPE_ELGAMAL))
if (!SupportsEncryptionType (i2p::data::CRYPTO_KEY_TYPE_ELGAMAL) || from) // LeaseSet1 can't come from ECIESx25519 session
leaseSet->SetIsIncompatibleCrypto (true);
}
else