diff options
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; |
