From e600b87e75bbdca3434a5798f01d909ec60105d1 Mon Sep 17 00:00:00 2001 From: Karsten Loesing Date: Wed, 7 Jan 2009 11:24:49 +0000 Subject: [PATCH] When parsing routerstatus lines in votes, use previously defined smartlist rs_tokens instead of tokens. Pointed out by multiplication_. svn:r17997 --- src/or/routerparse.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/or/routerparse.c b/src/or/routerparse.c index 7675ef5a83..1bbd483bce 100644 --- a/src/or/routerparse.c +++ b/src/or/routerparse.c @@ -2245,7 +2245,7 @@ networkstatus_parse_vote_from_string(const char *s, const char **eos_out, while (!strcmpstart(s, "r ")) { if (is_vote) { vote_routerstatus_t *rs = tor_malloc_zero(sizeof(vote_routerstatus_t)); - if (routerstatus_parse_entry_from_string(&s, tokens, ns, rs, 0)) + if (routerstatus_parse_entry_from_string(&s, rs_tokens, ns, rs, 0)) smartlist_add(ns->routerstatus_list, rs); else { tor_free(rs->version); @@ -2253,7 +2253,7 @@ networkstatus_parse_vote_from_string(const char *s, const char **eos_out, } } else { routerstatus_t *rs; - if ((rs = routerstatus_parse_entry_from_string(&s, tokens, NULL, NULL, + if ((rs = routerstatus_parse_entry_from_string(&s, rs_tokens, NULL, NULL, ns->consensus_method))) smartlist_add(ns->routerstatus_list, rs); }