[tor-commits] [tor/master] Fix 32-bit case of rend_cache/entry_allocation

nickm at torproject.org nickm at torproject.org
Wed Oct 7 18:31:24 UTC 2015


commit aeb9373158df00d77d26245c7524db3d5f1e515c
Author: Nick Mathewson <nickm at torproject.org>
Date:   Wed Oct 7 14:31:21 2015 -0400

    Fix 32-bit case of rend_cache/entry_allocation
---
 src/test/test_rendcache.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/test/test_rendcache.c b/src/test/test_rendcache.c
index 6075d39..01eeecb 100644
--- a/src/test/test_rendcache.c
+++ b/src/test/test_rendcache.c
@@ -1138,7 +1138,7 @@ test_rend_cache_entry_allocation(void *data)
   // Handles a non-null argument
   e = tor_malloc_zero(sizeof(rend_cache_entry_t));
   ret = rend_cache_entry_allocation(e);
-  tt_int_op(ret, OP_EQ, 88);
+  tt_int_op(ret, OP_GT, sizeof(rend_cache_entry_t));
 
  done:
   (void)0;



More information about the tor-commits mailing list