[tor-commits] [tor/master] Avoid infinite stack explosion in windows monotime.
nickm at torproject.org
nickm at torproject.org
Thu Jul 21 13:26:33 UTC 2016
commit 9c210d0e81016b493f1759141ddcbfeda7d5b5f9
Author: Nick Mathewson <nickm at torproject.org>
Date: Thu Jul 21 15:26:05 2016 +0200
Avoid infinite stack explosion in windows monotime.
[init calls get calls init calls get calls init.... ]
---
src/common/compat_time.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/common/compat_time.c b/src/common/compat_time.c
index cc2c3c8..77fdfc8 100644
--- a/src/common/compat_time.c
+++ b/src/common/compat_time.c
@@ -536,12 +536,12 @@ void
monotime_init(void)
{
if (!monotime_initialized) {
+ monotime_initialized = 1;
monotime_init_internal();
monotime_get(&initialized_at);
#ifdef MONOTIME_COARSE_FN_IS_DIFFERENT
monotime_coarse_get(&initialized_at_coarse);
#endif
- monotime_initialized = 1;
}
}
More information about the tor-commits
mailing list