diff options
author | Nick Mathewson <nickm@torproject.org> | 2004-08-07 03:25:42 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2004-08-07 03:25:42 +0000 |
commit | 1ada52fe87be3e8d0bb547b738fcdb380e783d3a (patch) | |
tree | 67c516ec23f1eb4f5a4b291c8956cf81b91725c8 | |
parent | 052537dad9130635d657152508e0aa15b8786a9a (diff) | |
download | tor-1ada52fe87be3e8d0bb547b738fcdb380e783d3a.tar.gz tor-1ada52fe87be3e8d0bb547b738fcdb380e783d3a.zip |
router_get_hash_impl would fail when end_str started with \n. Now it works.
svn:r2185
-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 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; |