summaryrefslogtreecommitdiff
path: root/src/or/routerparse.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/or/routerparse.c')
-rw-r--r--src/or/routerparse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/routerparse.c b/src/or/routerparse.c
index 0a4d67778d..9a9525cb7a 100644
--- a/src/or/routerparse.c
+++ b/src/or/routerparse.c
@@ -1319,7 +1319,7 @@ static int router_get_hash_impl(const char *s, char *digest,
log_fn(LOG_WARN,"couldn't find \"%s\"",end_str);
return -1;
}
- end = strchr(end, '\n');
+ end = strchr(end+strlen(end_str), '\n');
if (!end) {
log_fn(LOG_WARN,"couldn't find EOL");
return -1;