Skip to content
Snippets Groups Projects
Commit 11384b6d authored by Nick Mathewson's avatar Nick Mathewson :family:
Browse files

Make sure that routerlists contain only routers; give a better error message...

Make sure that routerlists contain only routers; give a better error message if they start with a nonrouter.


svn:r2393
parent 0c653e5c
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment