[tor-bugs] #12700 [Tor]: relay_command_to_string() doesn't know about EXTEND2 / EXTENDED2

Tor Bug Tracker & Wiki blackhole at torproject.org
Thu Jul 24 21:08:51 UTC 2014


#12700: relay_command_to_string() doesn't know about EXTEND2 / EXTENDED2
------------------------+--------------------------------
     Reporter:  arma    |      Owner:
         Type:  defect  |     Status:  new
     Priority:  normal  |  Milestone:  Tor: 0.2.6.x-final
    Component:  Tor     |    Version:
   Resolution:          |   Keywords:
Actual Points:          |  Parent ID:
       Points:          |
------------------------+--------------------------------
Description changed by arma:

Old description:

> Apparently we left them out on the big switch statement when we
> introduced them.
>
> We could add the two lines in -- that would be easy, and somebody should.
>
> The slightly more complicated question: is there a way to rephrase this
> function to future-proof it better against the next time we add a new
> relay command?

New description:

 Apparently we left EXTEND2 and EXTENDED2 out of this function's big switch
 statement when we introduced these relay commands.

 We could add the two lines in -- that would be easy, and somebody should.

 The slightly more complicated question: is there a way to rephrase this
 function to future-proof it better against the next time we add a new
 relay command?

--

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


More information about the tor-bugs mailing list