fxied crash

This commit is contained in:
orignal 2014-07-11 19:14:14 -04:00
parent e50454d92e
commit 67c9e68559
2 changed files with 3 additions and 2 deletions

View File

@ -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;
}

View File

@ -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; };