]> git.ipfire.org Git - thirdparty/tor.git/commit
Ensure controller RESOLVE commands respect __LeaveStreamsUnattached
authorRobert Hogan <robert@roberthogan.net>
Fri, 6 Aug 2010 19:29:15 +0000 (20:29 +0100)
committerRobert Hogan <robert@roberthogan.net>
Sun, 8 Aug 2010 11:37:59 +0000 (12:37 +0100)
commit462568674a2465e8eb9cbb1cda65fa3e736c99fd
treed32105b4c399849dcf590d034cb8b979bb994970
parentf060b18e6c4292be58de0e1b08f25b770cbddff8
Ensure controller RESOLVE commands respect __LeaveStreamsUnattached

https://trac.torproject.org/projects/tor/ticket/1525

"The codepath taken by the control port "RESOLVE" command to create a
synthetic SOCKS resolve request isn't the same as the path taken by
a real SOCKS request from 'tor-resolve'.
This prevents controllers who set LeaveStreamsUnattached=1 from
being able to attach RESOLVE streams to circuits of their choosing."

Create a new function connection_ap_rewrite_and_attach_if_allowed()
and call that when Tor needs to attach a stream to a circuit but
needs to know if the controller permits it.

No tests added.
changes/bug1525 [new file with mode: 0644]
src/or/connection_edge.c
src/or/connection_edge.h
src/or/dnsserv.c