Browse Source

fxied crash

pull/81/head
orignal 10 years ago
parent
commit
67c9e68559
  1. 2
      Garlic.cpp
  2. 3
      Garlic.h

2
Garlic.cpp

@ -348,7 +348,7 @@ namespace garlic @@ -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

@ -80,7 +80,8 @@ namespace garlic @@ -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…
Cancel
Save