1
0
mirror of https://github.com/PurpleI2P/i2pd.git synced 2025-01-12 14:27:53 +00:00

don't gererate more tags for detached session

This commit is contained in:
orignal 2020-05-26 16:47:45 -04:00
parent 010541197c
commit 37ec90c436

View File

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