mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-13 04:46:38 +01:00
fxied crash
This commit is contained in:
parent
e50454d92e
commit
67c9e68559
2 changed files with 3 additions and 2 deletions
|
@ -348,7 +348,7 @@ namespace garlic
|
||||||
buf += 2;
|
buf += 2;
|
||||||
if (tagCount > 0)
|
if (tagCount > 0)
|
||||||
{
|
{
|
||||||
decryption->SetTagCount (tagCount);
|
decryption->AddTagCount (tagCount);
|
||||||
for (int i = 0; i < tagCount; i++)
|
for (int i = 0; i < tagCount; i++)
|
||||||
m_SessionTags[SessionTag(buf + i*32)] = decryption;
|
m_SessionTags[SessionTag(buf + i*32)] = decryption;
|
||||||
}
|
}
|
||||||
|
|
1
Garlic.h
1
Garlic.h
|
@ -81,6 +81,7 @@ namespace garlic
|
||||||
|
|
||||||
SessionDecryption (): m_TagCount (0) {};
|
SessionDecryption (): m_TagCount (0) {};
|
||||||
void SetTagCount (int tagCount) { m_TagCount = tagCount; };
|
void SetTagCount (int tagCount) { m_TagCount = tagCount; };
|
||||||
|
void AddTagCount (int tagCount) { m_TagCount += tagCount; };
|
||||||
int GetTagCount () const { return m_TagCount; };
|
int GetTagCount () const { return m_TagCount; };
|
||||||
bool UseTag () { m_TagCount--; return m_TagCount > 0; };
|
bool UseTag () { m_TagCount--; return m_TagCount > 0; };
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue