]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix a crash bug introduced in 223d354e3.
authorNick Mathewson <nickm@torproject.org>
Sun, 26 Oct 2014 18:09:03 +0000 (14:09 -0400)
committerNick Mathewson <nickm@torproject.org>
Sun, 26 Oct 2014 18:09:03 +0000 (14:09 -0400)
Arma found this and commented on #11243.  Bug not in any released
version of Tor.

src/or/routerlist.c

index 5748dfd5f452d817ea074307e19712ccec0242e3..4d117cb86de1933d9b1104fd8c3b6b2f319750e0 100644 (file)
@@ -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;
   }