mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-02-02 02:44:15 +00:00
fxied crash
This commit is contained in:
parent
e50454d92e
commit
67c9e68559
@ -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;
|
||||||
}
|
}
|
||||||
|
3
Garlic.h
3
Garlic.h
@ -80,7 +80,8 @@ namespace garlic
|
|||||||
public:
|
public:
|
||||||
|
|
||||||
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…
x
Reference in New Issue
Block a user