[tor-commits] [tor/master] whoops; make 21450 compile

nickm at torproject.org nickm at torproject.org
Wed Feb 15 13:20:00 UTC 2017


commit fea93abecd14b1e95a0bdd894183a81e2c284434
Author: Nick Mathewson <nickm at torproject.org>
Date:   Wed Feb 15 08:19:37 2017 -0500

    whoops; make 21450 compile
---
 src/or/routerparse.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/or/routerparse.c b/src/or/routerparse.c
index c325412..7d9769b 100644
--- a/src/or/routerparse.c
+++ b/src/or/routerparse.c
@@ -5621,7 +5621,7 @@ tor_version_parse(const char *s, tor_version_t *out)
 
 #define NUMBER(m)                               \
   do {                                          \
-    out->m = (int)tor_parse_uint64(val, 10, 0, INT32_MAX, &ok, &eos); \
+    out->m = (int)tor_parse_uint64(cp, 10, 0, INT32_MAX, &ok, &eos);    \
     if (!ok)                                    \
       return -1;                                \
     if (!eos || eos == cp)                      \





More information about the tor-commits mailing list