[tor-commits] [tlsdate/debian-master] We care about the resulting server_time_s rather than time_map being 0

ioerror at torproject.org ioerror at torproject.org
Thu Oct 31 10:25:57 UTC 2013


commit 1ad5c8389f5592fe600c518f61bc8354f40ed18a
Author: Jacob Appelbaum <jacob at appelbaum.net>
Date:   Fri Apr 26 19:40:23 2013 -0700

    We care about the resulting server_time_s rather than time_map being 0
---
 src/tlsdate-helper.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/tlsdate-helper.c b/src/tlsdate-helper.c
index 311a377..35d6779 100644
--- a/src/tlsdate-helper.c
+++ b/src/tlsdate-helper.c
@@ -1191,7 +1191,7 @@ main(int argc, char **argv)
 #endif
   // We should never have a time_map of zero here;
   // It either stayed zero or we have a false ticker.
-  if (0 == time_map)
+  if ( 0 == server_time_s )
     die ("child process failed to update time map; weird platform issues?\n");
   munmap (time_map, sizeof (uint32_t));
 





More information about the tor-commits mailing list