mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-14 07:03:44 +01:00
router_get_hash_impl would fail when end_str started with \n. Now it works.
svn:r2185
This commit is contained in:
parent
052537dad9
commit
1ada52fe87
@ -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);
|
log_fn(LOG_WARN,"couldn't find \"%s\"",end_str);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
end = strchr(end, '\n');
|
end = strchr(end+strlen(end_str), '\n');
|
||||||
if (!end) {
|
if (!end) {
|
||||||
log_fn(LOG_WARN,"couldn't find EOL");
|
log_fn(LOG_WARN,"couldn't find EOL");
|
||||||
return -1;
|
return -1;
|
||||||
|
Loading…
Reference in New Issue
Block a user