[tor-bugs] #20107 [- Select a component]: somthings wrong about function channel_get_actual_remote_address()

Tor Bug Tracker & Wiki blackhole at torproject.org
Thu Sep 8 08:15:15 UTC 2016


#20107: somthings wrong about function channel_get_actual_remote_address()
--------------------------------------+--------------------------------
     Reporter:  DLP_ripper            |      Owner:
         Type:  defect                |     Status:  new
     Priority:  Medium                |  Milestone:  Tor: 0.2.8.x-final
    Component:  - Select a component  |    Version:  Tor: 0.2.8.7
     Severity:  Normal                |   Keywords:  channel ip address
Actual Points:                        |  Parent ID:
       Points:                        |   Reviewer:
      Sponsor:                        |
--------------------------------------+--------------------------------
 == description ==
 function '''channel_get_actual_remote_address''' is written to get the ip
 address of a channel, but when we use it in function
 '''command_process_created_cell''', we find that it get the same ip
 address about ''circ->n_chan'' and ''TO_OR_CIRCUIT(circ)->p_chan''.
 But actually they have different ip address because
 ''TO_OR_CIRCUIT(circ)->p_chan'' is not equals to ''circ->n_chan'', and
 ''TO_OR_CIRCUIT(circ)->p_circ_id'' is not equals to ''circ->n_circ_id''.

 == test ==

 If you want to check whether I am right, you can add this code into the
 last line in function '''command_process_created_cell''', the funtion is
 written in the  file
 ''command.c''. I have check it in tor-0.2.8.7 and tor-0.2.7.6.



 {{{
 log_notice(LD_GENERAL, "p_ip_addr:%s, p_circ_id:%u, n_ip_addr:%s,
 n_circ_id:%u",
 channel_get_actual_remote_address(TO_OR_CIRCUIT(circ)->p_chan),
                 TO_OR_CIRCUIT(circ)->p_circ_id,
                 channel_get_actual_remote_address(circ->n_chan),
                 cell->circ_id);
 }}}

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/20107>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list