[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



#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
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs