summaryrefslogtreecommitdiff
path: root/src/or
AgeCommit message (Collapse)Author
2018-03-29Fix CID 1433643Taylor Yu
Add a missing lock acquisition around access to queued_control_events in control_free_all(). Use the reassign-and-unlock strategy as in queued_events_flush_all(). Fixes bug 25675. Coverity found this bug, but only after we recently added an access to flush_queued_event_pending.
2018-03-29Merge branch 'maint-0.3.3'Nick Mathewson
2018-03-29Merge branch 'bug25617_029' into maint-0.3.3Nick Mathewson
2018-03-29Mark controller-initiated DNS lookups as permitted to do DNS.Nick Mathewson
Fixes bug 25617; bugfix on 0.2.9.3-alpha.
2018-03-28Merge remote-tracking branch 'public/bug25512'Nick Mathewson
2018-03-28Merge remote-tracking branch 'asn-github/t-25432'Nick Mathewson
2018-03-28Merge branch 'maint-0.3.3'Nick Mathewson
2018-03-28Merge remote-tracking branch 'dgoulet/bug24767_033_03' into maint-0.3.3Nick Mathewson
2018-03-28Merge branch 'maint-0.3.3'Nick Mathewson
2018-03-28Allow IPv6 address strings to be used as hostnames in SOCKS5 requestsrl1987
2018-03-27Merge branch 'maint-0.3.3'Nick Mathewson
2018-03-27Fix CID 1430932Taylor Yu
Coverity found a null pointer reference in nodelist_add_microdesc(). This is almost certainly impossible assuming that the routerstatus_t returned by router_get_consensus_status_by_descriptor_digest() always corresponds to an entry in the nodelist. Fixes bug 25629.
2018-03-27Fix CID 1430932Taylor Yu
Coverity found a null pointer reference in nodelist_add_microdesc(). This is almost certainly impossible assuming that the routerstatus_t returned by router_get_consensus_status_by_descriptor_digest() always corresponds to an entry in the nodelist. Fixes bug 25629.
2018-03-27test: Add unittest for the OR connection failure cacheGeorge Kadianakis
Signed-off-by: David Goulet <dgoulet@torproject.org>
2018-03-27relay: Avoid connecting to down relaysDavid Goulet
If we failed to connect at the TCP level to a relay, note it down and refuse to connect again for another 60 seconds. Fixes #24767 Signed-off-by: David Goulet <dgoulet@torproject.org>
2018-03-27Merge branch 'maint-0.3.3'Nick Mathewson
2018-03-27Merge branch 'bug25213_033' into maint-0.3.3Nick Mathewson
2018-03-26Merge branch 'bug24658-rm-curve25519-header' into bug24658-mergeNick Mathewson
2018-03-26Merge branch 'maint-0.3.3'Nick Mathewson
2018-03-26Merge remote-tracking branch 'dgoulet/bug24904_033_01' into maint-0.3.3Nick Mathewson
2018-03-26Merge branch 'maint-0.3.3'Nick Mathewson
2018-03-26Merge branch 'bug24903_029' into maint-0.3.3Nick Mathewson
2018-03-26Make extend_info_from_node() more picky about node contentsNick Mathewson
This update is needed to make it consistent with the behavior of node_awaiting_ipv6(), which doesn't believe in the addresses from routerinfos unless it actually plans to use those routerinfos. Fixes bug 25213; bugfix on b66b62fb7525cac1e1 in 0.3.3.1-alpha, which tightened up the definition of node_awaiting_ipv6().
2018-03-26When extending a circuit's path length, clear onehop_tunnel.Nick Mathewson
There was a nonfatal assertion in pathbias_should_count that would trigger if onehop_tunnel was set, but the desired_path_length was greater than 1. This patch fixes that. Fixes bug 24903; bugfix on 0.2.5.2-alpha.
2018-03-23Merge branch 'maint-0.3.3'Nick Mathewson
2018-03-23Fix windows compilation warnings in hs_service.cNick Mathewson
These were breaking jenkins builds. Bugfix on 5804ccc9070dc54; bug not in any released Tor.
2018-03-23Clear all control.c flags on control_free_all()Nick Mathewson
Fixes bug 25512.
2018-03-23Merge remote-tracking branch 'fristonio/ticket-24740'Nick Mathewson
2018-03-23chan: Use channel_is_client() in channel_do_open_actions()David Goulet
Make sure we actually only report client channel to the geoip cache instead of looking if it is a known relay. Looking if it is a known relay can be unreliable because they come and go from the consensus. Fixes #24904 Signed-off-by: David Goulet <dgoulet@torproject.org>
2018-03-22hs: Fix two typos in an inline comment.Isis Lovecruft
* FIXES #25602: https://bugs.torproject.org/25602
2018-03-22Merge remote-tracking branch 'public/geoip_testing'Nick Mathewson
2018-03-20Merge branch 'maint-0.3.3'Nick Mathewson
2018-03-20Merge branch 'bug25306_032_01_squashed_v2' into maint-0.3.3Nick Mathewson
2018-03-20hs-v3: BUG() on missing descriptors during rotationDavid Goulet
Because of #25306 for which we are unable to reproduce nor understand how it is possible, this commit removes the asserts() and BUG() on the missing descriptors instead when rotating them. This allows us to log more data on error but also to let tor recover gracefully instead of dying. Signed-off-by: David Goulet <dgoulet@torproject.org>
2018-03-20Merge branch 'maint-0.3.3'Nick Mathewson
2018-03-20Log information on specific compression backends in the OOM handler.Alexander Færøy
This patch adds some additional logging to circuits_handle_oom() to give us more information about which specific compression backend that is using a certain amount of memory. See: https://bugs.torproject.org/25372
2018-03-19Merge remote-tracking branch 'isis/bug23881_r1'Nick Mathewson
2018-03-19Use tor_asprintf for in have_enough_mem_for_dircache()Neel Chauhan
(Fixes bug 20887)
2018-03-19Merge remote-tracking branch 'fristonio/ticket-6236'Nick Mathewson
2018-03-19Merge branch 'ticket25268_034_01'Nick Mathewson
2018-03-15On geoip_free_all, reset geoip[6]_digest.Nick Mathewson
2018-03-14Merge remote-tracking branch 'public/restart_reset_bootstrap'Nick Mathewson
2018-03-13Merge branch 'maint-0.3.3'Nick Mathewson
2018-03-13Update the documentation in tor_api.hNick Mathewson
2018-03-06Refactor: suppress duplicated functions from router.c and encapsulate ↵Caio Valente
NODE_DESC_BUF_LEN constant. Also encapsulates format_node_description(). Closes ticket 25432.
2018-03-04Fix redundant authority certificate fetchDeepesh Pathak
- Fixes #24740 - Fetch certificates only in those cases when consensus are waiting for certs.
2018-03-04Fix a crash bug when testing reachabilityNick Mathewson
Fixes bug 25415; bugfix on 0.3.3.2-alpha.
2018-03-03Merge remote-tracking branch 'fristonio/ticket4187'Nick Mathewson
2018-03-03Merge branch 'maint-0.3.3'Nick Mathewson
2018-03-03Merge branch 'ticket23814' into maint-0.3.3Nick Mathewson