Browse Source

check if session expired before generating more tags

pull/1583/head
orignal 4 years ago
parent
commit
c833b16544
  1. 7
      libi2pd/ECIESX25519AEADRatchetSession.cpp

7
libi2pd/ECIESX25519AEADRatchetSession.cpp

@ -1011,8 +1011,11 @@ namespace garlic @@ -1011,8 +1011,11 @@ namespace garlic
void ECIESX25519AEADRatchetSession::GenerateMoreReceiveTags (std::shared_ptr<RatchetTagSet> receiveTagset, int numTags)
{
for (int i = 0; i < numTags; i++)
GetOwner ()->AddECIESx25519SessionNextTag (receiveTagset);
if (GetOwner ())
{
for (int i = 0; i < numTags; i++)
GetOwner ()->AddECIESx25519SessionNextTag (receiveTagset);
}
}
bool ECIESX25519AEADRatchetSession::CheckExpired (uint64_t ts)

Loading…
Cancel
Save