When parsing routerstatus lines in votes, use previously defined smartlist rs_tokens instead of tokens. Pointed out by multiplication_.

svn:r17997
This commit is contained in:
Karsten Loesing 2009-01-07 11:24:49 +00:00
parent 243ded6b57
commit e600b87e75
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}