[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [tor/master] Avoid infinite stack explosion in windows monotime.
commit 9c210d0e81016b493f1759141ddcbfeda7d5b5f9
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
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;
}
}
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits