mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-23 14:40:51 +01:00
Fix bug in redirectstream.
svn:r3926
This commit is contained in:
parent
5062c49c76
commit
1bf1f44e74
1 changed files with 2 additions and 2 deletions
|
@ -777,7 +777,7 @@ handle_control_redirectstream(connection_t *conn, uint32_t len,
|
|||
connection_t *ap_conn;
|
||||
uint32_t conn_id;
|
||||
if (len < 6) {
|
||||
send_control_error(conn, ERR_SYNTAX, "attachstream message too short");
|
||||
send_control_error(conn, ERR_SYNTAX, "redirectstream message too short");
|
||||
return 0;
|
||||
}
|
||||
conn_id = ntohl(get_uint32(body));
|
||||
|
@ -789,7 +789,7 @@ handle_control_redirectstream(connection_t *conn, uint32_t len,
|
|||
"No AP connection found with given ID");
|
||||
return 0;
|
||||
}
|
||||
strlcpy(ap_conn->socks_request->address, body+1,
|
||||
strlcpy(ap_conn->socks_request->address, body+4,
|
||||
sizeof(ap_conn->socks_request->address));
|
||||
|
||||
send_control_done(conn);
|
||||
|
|
Loading…
Add table
Reference in a new issue