Browse Source

fxied crash

pull/81/head
orignal 11 years ago
parent
commit
67c9e68559
  1. 2
      Garlic.cpp
  2. 1
      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;
}

1
Garlic.h

@ -81,6 +81,7 @@ namespace garlic @@ -81,6 +81,7 @@ namespace garlic
SessionDecryption (): m_TagCount (0) {};
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