r13046@catbus: nickm | 2007-05-29 11:07:12 -0400

Stop adding bogus entries to lists in router_parse_list_from_string(). I wonder which bugs _that_ caused.


svn:r10390
This commit is contained in:
Nick Mathewson 2007-05-29 15:07:16 +00:00
parent 916e98d3fa
commit fd3aa5c85d

View File

@ -905,11 +905,15 @@ router_parse_list_from_string(const char **s, const char *eos,
extrainfo = extrainfo_parse_entry_from_string(*s, end,
saved_location != SAVED_IN_CACHE,
rl->identity_map);
if (!extrainfo)
continue;
signed_desc = &extrainfo->cache_info;
elt = extrainfo;
} else if (!have_extrainfo && !want_extrainfo) {
router = router_parse_entry_from_string(*s, end,
saved_location != SAVED_IN_CACHE);
if (!router)
continue;
signed_desc = &router->cache_info;
elt = router;
} else {