mirror of
https://github.com/PurpleI2P/i2pd
synced 2024-11-10 00:00:29 +03:00
fxied crash
This commit is contained in:
parent
e50454d92e
commit
67c9e68559
@ -348,7 +348,7 @@ namespace garlic
|
||||
buf += 2;
|
||||
if (tagCount > 0)
|
||||
{
|
||||
decryption->SetTagCount (tagCount);
|
||||
decryption->AddTagCount (tagCount);
|
||||
for (int i = 0; i < tagCount; i++)
|
||||
m_SessionTags[SessionTag(buf + i*32)] = decryption;
|
||||
}
|
||||
|
3
Garlic.h
3
Garlic.h
@ -80,7 +80,8 @@ namespace garlic
|
||||
public:
|
||||
|
||||
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; };
|
||||
bool UseTag () { m_TagCount--; return m_TagCount > 0; };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user