diff options
| author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2014-04-10 16:30:15 -0700 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2014-04-10 16:30:15 -0700 |
| commit | aee742e7675dfc125f31fbe00fafeda53c532b05 (patch) | |
| tree | 0c37168cc39677c1a4896ec1d8fffc7ebbe5b867 /node/AntiRecursion.hpp | |
| parent | c9294c1a78fa86fbba38b1a81988ea7527b0872c (diff) | |
| download | infinitytier-aee742e7675dfc125f31fbe00fafeda53c532b05.tar.gz infinitytier-aee742e7675dfc125f31fbe00fafeda53c532b05.zip | |
More toward GitHub issue #56
Diffstat (limited to 'node/AntiRecursion.hpp')
| -rw-r--r-- | node/AntiRecursion.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/node/AntiRecursion.hpp b/node/AntiRecursion.hpp index 82cf9e58..23b0f04c 100644 --- a/node/AntiRecursion.hpp +++ b/node/AntiRecursion.hpp @@ -89,7 +89,7 @@ public: { for(unsigned int h=0;h<ZT_ANTIRECURSION_HISTORY_SIZE;++h) { ArItem *i = &(_history[h]); - if ((len >= i->len)&&(!memcmp(((const unsigned char *)data) + (len - i->len),i->tail,i->len))) + if ((i->len > 0)&&(len >= i->len)&&(!memcmp(((const unsigned char *)data) + (len - i->len),i->tail,i->len))) return false; } return true; |
