diff options
-rw-r--r-- | src/or/routerparse.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/routerparse.c b/src/or/routerparse.c index 4b6c22e15e..8cb1ca59f3 100644 --- a/src/or/routerparse.c +++ b/src/or/routerparse.c @@ -892,7 +892,7 @@ router_parse_list_from_string(const char **s, const char *eos, } end = tor_memstr(*s, eos-*s, "\nrouter-signature"); if (end) - end = tor_memstr(end, eos-*s, "\n-----END SIGNATURE-----\n"); + end = tor_memstr(end, eos-end, "\n-----END SIGNATURE-----\n"); if (end) end += strlen("\n-----END SIGNATURE-----\n"); |