[tor-commits] [tor/master] Fix another signed/unsigned comparison bug

nickm at torproject.org nickm at torproject.org
Thu Apr 23 13:21:50 UTC 2015


commit f1204e0c029b40d11360da57045ad9ae51264744
Author: Nick Mathewson <nickm at torproject.org>
Date:   Thu Apr 23 09:21:44 2015 -0400

    Fix another signed/unsigned comparison bug
---
 src/or/or.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/or/or.h b/src/or/or.h
index 4fd6d1d..2f6890a 100644
--- a/src/or/or.h
+++ b/src/or/or.h
@@ -4869,7 +4869,7 @@ typedef struct rend_intro_point_t {
    * will accept. This is a random value between
    * INTRO_POINT_MIN_LIFETIME_INTRODUCTIONS and
    * INTRO_POINT_MAX_LIFETIME_INTRODUCTIONS. */
-  unsigned int max_introductions;
+  int max_introductions;
 
   /** (Service side only) The time at which this intro point was first
    * published, or -1 if this intro point has not yet been



More information about the tor-commits mailing list