aboutsummaryrefslogtreecommitdiff
path: root/src/or/routerlist.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/or/routerlist.c')
-rw-r--r--src/or/routerlist.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/or/routerlist.c b/src/or/routerlist.c
index 900dd4455..3c4e39ff6 100644
--- a/src/or/routerlist.c
+++ b/src/or/routerlist.c
@@ -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)