mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-25 07:07:52 +01:00
router_add_to_routerlist() really needs to free not-added routers.
svn:r5328
This commit is contained in:
parent
76988bafbe
commit
ed32d85a04
1 changed files with 5 additions and 1 deletions
|
@ -1386,18 +1386,22 @@ router_add_to_routerlist(routerinfo_t *router, const char **msg,
|
|||
info(LD_DIR, "Dropping descriptor that we already have for router '%s'",
|
||||
router->nickname);
|
||||
*msg = "Router descriptor was not new.";
|
||||
routerinfo_free(router);
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (authdir) {
|
||||
if (authdir_wants_to_reject_router(router, msg))
|
||||
if (authdir_wants_to_reject_router(router, msg)) {
|
||||
routerinfo_free(router);
|
||||
return -2;
|
||||
}
|
||||
authdir_verified = router->is_verified;
|
||||
/*
|
||||
} else {
|
||||
if (! router->xx_is_recognized && !from_cache) {
|
||||
log_fn(LOG_WARN, "Dropping unrecognized descriptor for router '%s'",
|
||||
router->nickname);
|
||||
rouerinfo_free(router);
|
||||
return -1;
|
||||
}
|
||||
*/
|
||||
|
|
Loading…
Add table
Reference in a new issue