Skip to content
Snippets Groups Projects
  1. May 01, 2014
  2. Apr 29, 2014
    • Nick Mathewson's avatar
      Stop leaking memory in error cases of md parsing · 65575b07
      Nick Mathewson authored
      When clearing a list of tokens, it's important to do token_clear()
      on them first, or else any keys they contain will leak.  This didn't
      leak memory on any of the successful microdescriptor parsing paths,
      but it does leak on some failing paths when the failure happens
      during tokenization.
      
      Fixes bug 11618; bugfix on 0.2.2.6-alpha.
      65575b07
  3. Apr 25, 2014
  4. Apr 16, 2014
  5. Apr 15, 2014
  6. Apr 14, 2014
  7. Feb 25, 2014
    • Karsten Loesing's avatar
      Fix geoip by falling back to registered countries. · 2658e70d
      Karsten Loesing authored
      See 1d2179bc in master for details.
      
      """
      Fall back to registered country if necessary.
      
      When extracting geoip and geoip6 files from MaxMind's GeoLite2 Country
      database, we only look at country->iso_code which is the two-character ISO
      3166-1 country code of the country where MaxMind believes the end user is
      located.
      
      But if MaxMind thinks a range belongs to anonymous proxies, they don't put
      anything there.  Hence, we omit those ranges and resolve them all to '??'.
      That's not what we want.
      
      What we should do is first try country->iso_code, and if there's no such
      key, try registered_country->iso_code which is the country in which the
      ISP has registered the IP address.
      
      In short: let's fill all A1 entries with what ARIN et. al think.
      """
      2658e70d
  8. Feb 15, 2014
  9. Feb 08, 2014
  10. Nov 15, 2013
  11. Nov 07, 2013
    • Nick Mathewson's avatar
      Improved circuit queue out-of-memory handler · 1b8ceb83
      Nick Mathewson authored
      Previously, when we ran low on memory, we'd close whichever circuits
      had the most queued cells. Now, we close those that have the
      *oldest* queued cells, on the theory that those are most responsible
      for us running low on memory, and that those are the least likely to
      actually drain on their own if we wait a little longer.
      
      Based on analysis from a forthcoming paper by Jansen, Tschorsch,
      Johnson, and Scheuermann. Fixes bug 9093.
      1b8ceb83
  12. Oct 11, 2013
  13. Oct 10, 2013
  14. Oct 08, 2013
  15. Sep 18, 2013
    • Nick Mathewson's avatar
      Fix an assert when disabling ORPort with accounting disabled. · dece40fd
      Nick Mathewson authored
      The problem was that the server_identity_key_is_set() function could
      return true under conditions where we don't really have an identity
      key -- specifically, where we used to have one, but we stopped being a
      server.
      
      This is a fix for 6979; bugfix on 0.2.2.18-alpha where we added that
      assertion to get_server_identity_key().
      dece40fd
  16. Sep 16, 2013
  17. Sep 10, 2013
  18. Sep 04, 2013
  19. Aug 25, 2013
  20. Aug 23, 2013
  21. Aug 22, 2013
  22. Aug 21, 2013
    • Nick Mathewson's avatar
      Make bridges send AUTH_CHALLENGE cells · 940cef33
      Nick Mathewson authored
      The spec requires them to do so, and not doing so creates a situation
      where they can't send-test because relays won't extend to them because
      of the other part of bug 9546.
      
      Fixes bug 9546; bugfix on 0.2.3.6-alpha.
      940cef33
    • Nick Mathewson's avatar
      Send NETINFO on receiving a NETINFO if we have not yet sent one. · 0daa26a4
      Nick Mathewson authored
      (Backport to Tor 0.2.3)
      
      Relays previously, when initiating a connection, would only send a
      NETINFO after sending an AUTHENTICATE.  But bridges, when receiving a
      connection, would never send AUTH_CHALLENGE.  So relays wouldn't
      AUTHENTICATE, and wouldn't NETINFO, and then bridges would be
      surprised to be receiving CREATE cells on a non-open circuit.
      
      Fixes bug 9546.
      0daa26a4
  23. Aug 12, 2013
  24. Jul 08, 2013
  25. Jun 18, 2013
Loading