From c879efb82d645133594e275adc3423ee64efa724 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Sat, 7 Aug 2004 03:25:42 +0000 Subject: [PATCH] router_get_hash_impl would fail when end_str started with \n. Now it works. svn:r2185 --- trunk/src/or/routerparse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trunk/src/or/routerparse.c b/trunk/src/or/routerparse.c index 0a4d67778d..9a9525cb7a 100644 --- a/trunk/src/or/routerparse.c +++ b/trunk/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;