Browse Source

don't gererate more tags for detached session

pull/1525/head
orignal 5 years ago
parent
commit
37ec90c436
  1. 2
      libi2pd/ECIESX25519AEADRatchetSession.cpp

2
libi2pd/ECIESX25519AEADRatchetSession.cpp

@ -612,7 +612,7 @@ namespace garlic
int moreTags = ECIESX25519_MIN_NUM_GENERATED_TAGS + (index >> 2); // N/4 int moreTags = ECIESX25519_MIN_NUM_GENERATED_TAGS + (index >> 2); // N/4
if (moreTags > ECIESX25519_MAX_NUM_GENERATED_TAGS) moreTags = ECIESX25519_MAX_NUM_GENERATED_TAGS; if (moreTags > ECIESX25519_MAX_NUM_GENERATED_TAGS) moreTags = ECIESX25519_MAX_NUM_GENERATED_TAGS;
moreTags -= (receiveTagset->GetNextIndex () - index); moreTags -= (receiveTagset->GetNextIndex () - index);
if (moreTags > 0) if (moreTags > 0 && GetOwner ())
GenerateMoreReceiveTags (receiveTagset, moreTags); GenerateMoreReceiveTags (receiveTagset, moreTags);
return true; return true;
} }

Loading…
Cancel
Save