summaryrefslogtreecommitdiff
path: root/node/AntiRecursion.hpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@zerotier.com>2015-11-13 12:14:28 -0800
committerAdam Ierymenko <adam.ierymenko@zerotier.com>2015-11-13 12:14:28 -0800
commit0d9f33dc4f14b7339d1893e79772a8e49b4821eb (patch)
treee7b3e1ee8ec92d57ce71482c64738f4211e5d9ff /node/AntiRecursion.hpp
parent90f9415107fded22346bfa94f98afa73c6c2811e (diff)
downloadinfinitytier-0d9f33dc4f14b7339d1893e79772a8e49b4821eb.tar.gz
infinitytier-0d9f33dc4f14b7339d1893e79772a8e49b4821eb.zip
Fix: (1) Windows stack overflow due to buffer too large in peer deserialize, (2) clean up some other stuff seen during debugging and reduce the sizes of some buffers due to Windows small stack size, (3) remove a redundant try/catch.
Diffstat (limited to 'node/AntiRecursion.hpp')
-rw-r--r--node/AntiRecursion.hpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/node/AntiRecursion.hpp b/node/AntiRecursion.hpp
index 8629d19a..4d9df465 100644
--- a/node/AntiRecursion.hpp
+++ b/node/AntiRecursion.hpp
@@ -58,7 +58,12 @@ class AntiRecursion
public:
AntiRecursion()
{
- memset(_history,0,sizeof(_history));
+ for(int i=0;i<ZT_ANTIRECURSION_HISTORY_SIZE;++i) {
+ _history[i].tail[0] = 0;
+ _history[i].tail[1] = 0;
+ _history[i].tail[2] = 0;
+ _history[i].tail[3] = 0;
+ }
_ptr = 0;
}