[tor-bugs] #11264 [Tor]: Relay has Exit flag but short policy says reject *?

Tor Bug Tracker & Wiki blackhole at torproject.org
Sun Jul 27 08:24:36 UTC 2014


#11264: Relay has Exit flag but short policy says reject *?
------------------------+--------------------------------
     Reporter:  arma    |      Owner:
         Type:  defect  |     Status:  needs_review
     Priority:  normal  |  Milestone:  Tor: 0.2.6.x-final
    Component:  Tor     |    Version:
   Resolution:          |   Keywords:  tor-auth easy
Actual Points:          |  Parent ID:
       Points:          |
------------------------+--------------------------------
Changes (by epilys):

 * cc: el13635@… (added)
 * status:  new => needs_review


Comment:

 `policy_summarize()` should return a NULL `char *` if no exits are
 allowed, yet in the 1-65535 port case it returns the string "reject
 1-65535"

 I think changing the line 1402 on policies.c should be enough to fix this,
 from

   `result = tor_strdup("reject 1-65535");`

 to

   `result = NULL;`

 Pertinent patch is attached

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


More information about the tor-bugs mailing list