[tor-bugs] #13111 [Tor]: Tor fails to start if onion keys are zero length

Tor Bug Tracker & Wiki blackhole at torproject.org
Mon Oct 20 19:30:40 UTC 2014


#13111: Tor fails to start if onion keys are zero length
-------------------------+----------------------------------
     Reporter:  ioerror  |      Owner:  teor
         Type:  defect   |     Status:  needs_review
     Priority:  normal   |  Milestone:  Tor: 0.2.6.x-final
    Component:  Tor      |    Version:
   Resolution:           |   Keywords:  tor-relay lorax easy
Actual Points:           |  Parent ID:
       Points:           |
-------------------------+----------------------------------

Comment (by teor):

 Actually, I had the same idea, and was halfway through the change using
 FN_EMPTY, when I realised that it would complicate any existing code that
 used FN_FILE and expected empty files to be treated as normal files.

 I had a list of these locations, but I cut them from my last comment for
 length. They were: torrc, replace_file, and rotate_onion_key. The code
 ended up being significantly more complicated, and it seemed to me that I
 was overloading "file type" with "file size".

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


More information about the tor-bugs mailing list