mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Make sure that routerlists contain only routers; give a better error message if they start with a nonrouter.
svn:r2393
This commit is contained in:
@@ -748,6 +748,10 @@ int router_load_routerlist_from_string(const char *s, int trusted)
|
||||
log(LOG_WARN, "Error parsing router file");
|
||||
return -1;
|
||||
}
|
||||
if (*s) {
|
||||
log(LOG_WARN, "Extraneous text at start of router file");
|
||||
return -1;
|
||||
}
|
||||
if (trusted) {
|
||||
int i;
|
||||
if (!trusted_dir_digests)
|
||||
|
||||
Reference in New Issue
Block a user