summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2014-10-26 14:09:03 -0400
committerNick Mathewson <nickm@torproject.org>2014-10-26 14:09:03 -0400
commitf5fc7e3306f03c8a304dad89ada2280466d54c9a (patch)
tree5a6a3a8498a81593af1d6d59e063cf251b2c75f4
parent1ce57267b4dbb765dc0ce652080b60ecc013703e (diff)
downloadtor-f5fc7e3306f03c8a304dad89ada2280466d54c9a.tar.gz
tor-f5fc7e3306f03c8a304dad89ada2280466d54c9a.zip
Fix a crash bug introduced in 223d354e3.
Arma found this and commented on #11243. Bug not in any released version of Tor.
-rw-r--r--src/or/routerlist.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/routerlist.c b/src/or/routerlist.c
index 5748dfd5f4..4d117cb86d 100644
--- a/src/or/routerlist.c
+++ b/src/or/routerlist.c
@@ -2960,7 +2960,8 @@ extrainfo_insert,(routerlist_t *rl, extrainfo_t *ei))
goto done;
}
if (routerinfo_incompatible_with_extrainfo(ri, ei, sd, NULL)) {
- r = (sd->extrainfo_is_bogus) ? ROUTER_BAD_EI : ROUTER_NOT_IN_CONSENSUS;
+ r = (ri->cache_info.extrainfo_is_bogus) ?
+ ROUTER_BAD_EI : ROUTER_NOT_IN_CONSENSUS;
goto done;
}