r17627@catbus: nickm | 2008-01-15 00:57:52 -0500

Backport the user-visible bugfixes from r13136.


svn:r13137
This commit is contained in:
Nick Mathewson 2008-01-15 05:57:55 +00:00
parent b7494ce8e9
commit 31473ee286
3 changed files with 6 additions and 2 deletions

View File

@ -45,6 +45,10 @@ Changes in version 0.1.2.19 - 2008-01-??
the real limit for number of open files is OPEN_FILES, not
rlim_max from getrlimit(RLIMIT_NOFILES).
- Avoid a spurious free on base64 failure.
- Avoid segfaults on certain complex invocations of
router_get_by_hexdigest()
- Fix rare bug on REDIRECTSTREAM control command when called with no
port set: it could erroneously report an error when none had happened.
Changes in version 0.1.2.18 - 2007-10-28

View File

@ -2046,7 +2046,7 @@ handle_control_redirectstream(control_connection_t *conn, uint32_t len,
connection_printf_to_buf(conn, "552 Unknown stream \"%s\"\r\n",
(char*)smartlist_get(args, 0));
} else {
int ok;
int ok = 1;
if (smartlist_len(args) > 2) { /* they included a port too */
new_port = (uint16_t) tor_parse_ulong(smartlist_get(args, 2),
10, 1, 65535, &ok, NULL);

View File

@ -1494,7 +1494,7 @@ router_get_by_hexdigest(const char *hexdigest)
ri = router_get_by_digest(digest);
if (len > HEX_DIGEST_LEN) {
if (ri && len > HEX_DIGEST_LEN) {
if (hexdigest[HEX_DIGEST_LEN] == '=') {
if (strcasecmp(ri->nickname, hexdigest+HEX_DIGEST_LEN+1) ||
!ri->is_named)