]> git.ipfire.org Git - thirdparty/tor.git/log
thirdparty/tor.git
10 years agoAllow IPv4 and IPv6 addresses in SOCKS5 FQDN requests.
Yawning Angel [Tue, 30 Dec 2014 16:36:16 +0000 (16:36 +0000)] 
Allow IPv4 and IPv6 addresses in SOCKS5 FQDN requests.

Supposedly there are a decent number of applications that "support"
IPv6 and SOCKS5 using the FQDN address type.  While said applications
should be using the IPv6 address type, allow the connection if
SafeSocks is not set.

Bug not in any released version.

10 years agoMerge remote-tracking branch 'dgoulet/bug13667_025_v4'
Nick Mathewson [Tue, 30 Dec 2014 13:34:48 +0000 (08:34 -0500)] 
Merge remote-tracking branch 'dgoulet/bug13667_025_v4'

10 years agoFix: mitigate as much as we can HS port scanning
David Goulet [Tue, 25 Nov 2014 15:37:55 +0000 (10:37 -0500)] 
Fix: mitigate as much as we can HS port scanning

Make hidden service port scanning harder by sending back REASON_DONE which
does not disclose that it was in fact an exit policy issue. After that, kill
the circuit immediately to avoid more bad requests on it.

This means that everytime an hidden service exit policy does match, the user
(malicious or not) needs to build a new circuit.

Fixes #13667.

Signed-off-by: David Goulet <dgoulet@ev0ke.net>
10 years agoWipe all of the target space in tor_addr_{to,from}_sockaddr()
Nick Mathewson [Mon, 29 Dec 2014 15:06:12 +0000 (10:06 -0500)] 
Wipe all of the target space in tor_addr_{to,from}_sockaddr()

Otherwise we risk a subsequent memdup or memcpy copying
uninitialized RAM into some other place that might eventually expose
it.  Let's make sure that doesn't happen.

Closes ticket 14041

10 years agoMerge branch 'resolvemyaddr_squashed'
Nick Mathewson [Mon, 29 Dec 2014 15:00:34 +0000 (10:00 -0500)] 
Merge branch 'resolvemyaddr_squashed'

10 years agochanges file for resolvemyaddr tests
Nick Mathewson [Mon, 29 Dec 2014 14:44:28 +0000 (09:44 -0500)] 
changes file for resolvemyaddr tests

10 years agoMake the resolvemyaddr unit tests pass when local dns is hijacked
Nick Mathewson [Mon, 29 Dec 2014 14:41:37 +0000 (09:41 -0500)] 
Make the resolvemyaddr unit tests pass when local dns is hijacked

If you are in a coffee shop that returns a helpful redirect page for
"onionrouter", or on an ISP that does the same, the test as written
would fail.

10 years agoFix memory leaks in resolvemyaddr tests
Nick Mathewson [Mon, 29 Dec 2014 14:33:36 +0000 (09:33 -0500)] 
Fix memory leaks in resolvemyaddr tests

10 years agoFix compilation errors in resolvemyaddr tests
Nick Mathewson [Mon, 29 Dec 2014 14:29:32 +0000 (09:29 -0500)] 
Fix compilation errors in resolvemyaddr tests

10 years agoAdding comprehensive test cases for resolve_my_address.
rl1987 [Mon, 28 Apr 2014 20:20:58 +0000 (23:20 +0300)] 
Adding comprehensive test cases for resolve_my_address.

Also, improve comments on resolve_my_address to explain what it
actually does.

10 years agoFix a few comments
rl1987 [Sat, 26 Apr 2014 13:53:28 +0000 (16:53 +0300)] 
Fix a few comments

10 years agoTweak 13913 fix: clarify that the behavior is not promised
Nick Mathewson [Mon, 29 Dec 2014 13:41:30 +0000 (08:41 -0500)] 
Tweak 13913 fix: clarify that the behavior is not promised

Also, it's->its.  The apostrophe is used if and only if it's a
contraction for "it is".

10 years agoMerge remote-tracking branch 'rl1987/ticket13913'
Nick Mathewson [Mon, 29 Dec 2014 13:39:13 +0000 (08:39 -0500)] 
Merge remote-tracking branch 'rl1987/ticket13913'

10 years agoAdd another cellintptr use; fixes 14031
Nick Mathewson [Sat, 27 Dec 2014 00:17:24 +0000 (19:17 -0500)] 
Add another cellintptr use; fixes 14031

10 years agoImprove a notice message in dirvote.c. (Roger asked for this.)
Nick Mathewson [Sat, 27 Dec 2014 00:14:56 +0000 (19:14 -0500)] 
Improve a notice message in dirvote.c. (Roger asked for this.)

10 years agoMerge remote-tracking branch 'teor/bug13718-consensus-interval'
Nick Mathewson [Tue, 23 Dec 2014 19:25:37 +0000 (14:25 -0500)] 
Merge remote-tracking branch 'teor/bug13718-consensus-interval'

10 years agoFix If-Modified-Since in rapidly updating Tor networks
teor [Sat, 20 Dec 2014 10:59:17 +0000 (21:59 +1100)] 
Fix If-Modified-Since in rapidly updating Tor networks

When V3AuthVotingInterval is low, decrease the delay on the
If-Modified-Since header passed to directory servers.
This allows us to obtain consensuses promptly when the consensus
interval is very short.

This assists in bootstrapping a testing Tor network.

Fixes bugs 13718 & 13963.

10 years agoAllow consensus interval of 10 seconds when testing
teor [Sat, 20 Dec 2014 10:53:00 +0000 (21:53 +1100)] 
Allow consensus interval of 10 seconds when testing

Decrease minimum consensus interval to 10 seconds
when TestingTorNetwork is set. (Or 5 seconds for
the first consensus.)

Fix code that assumes larger interval values.

This assists in quickly bootstrapping a testing
Tor network.

Fixes bugs 13718 & 13823.

10 years agoFix TestingMinExitFlagThreshold 0
teor [Sat, 20 Dec 2014 10:42:28 +0000 (21:42 +1100)] 
Fix TestingMinExitFlagThreshold 0

Stop requiring exits to have non-zero bandwithcapacity in a
TestingTorNetwork. Instead, when TestingMinExitFlagThreshold is 0,
ignore exit bandwidthcapacity.

This assists in bootstrapping a testing Tor network.
Fixes bugs 13718 & 13839.
Makes bug 13161's TestingDirAuthVoteExit non-essential.

10 years agoMerge remote-tracking branch 'public/bug13811_025'
Nick Mathewson [Tue, 23 Dec 2014 18:02:37 +0000 (13:02 -0500)] 
Merge remote-tracking branch 'public/bug13811_025'

10 years agoChanges file for 13811
Nick Mathewson [Tue, 23 Dec 2014 18:00:21 +0000 (13:00 -0500)] 
Changes file for 13811

10 years agoFix Matthews code to actually use tmp
Francisco Blas Izquierdo Riera (klondike) [Tue, 23 Dec 2014 17:55:48 +0000 (12:55 -0500)] 
Fix Matthews code to actually use tmp

Matthew's autoaddr code returned an undecorated address when trying to check
that the code didn't insert an undecorated one into the map.

This patch fixes this by actually storing the undecorated address in tmp
instead of buf as it was originally intended.

This patch is released under the same license as the original file as
long as the author iscredited.

Signed-off-by: Francisco Blas Izquierdo Riera (klondike) <klondike@gentoo.org>
10 years agoAdd pkg.m4 to use pkgconfig macros
Nick Mathewson [Tue, 23 Dec 2014 16:39:48 +0000 (11:39 -0500)] 
Add pkg.m4 to use pkgconfig macros

10 years agoFix compilation on platforms without IP6T_SO_ORIGINAL_DST
Nick Mathewson [Tue, 23 Dec 2014 16:36:27 +0000 (11:36 -0500)] 
Fix compilation on platforms without IP6T_SO_ORIGINAL_DST

10 years agoMerge branch 'ticket11016'
Nick Mathewson [Tue, 23 Dec 2014 16:32:22 +0000 (11:32 -0500)] 
Merge branch 'ticket11016'

10 years agochanges file for ticket11016
Nick Mathewson [Tue, 23 Dec 2014 16:32:10 +0000 (11:32 -0500)] 
changes file for ticket11016

10 years agoAdjust systemd watchdog support
Nick Mathewson [Tue, 23 Dec 2014 16:27:16 +0000 (11:27 -0500)] 
Adjust systemd watchdog support

Document why we divide it by two.

Check for > 0 instead of nonzero for success, since that's what the
manpage says.

Allow watchdog timers greater than 1 second.

10 years agoAdd support for systemd watchdog protocol
Michael Scherer [Tue, 23 Dec 2014 16:22:42 +0000 (11:22 -0500)] 
Add support for systemd watchdog protocol

It work by notifying systemd on a regular basis. If
there is no notification, the daemon is restarted.
This requires a version newer than the 209 version
of systemd, as it is not supported before.

10 years agoadd support for systemd notification protocol
Michael Scherer [Thu, 20 Feb 2014 23:24:25 +0000 (00:24 +0100)] 
add support for systemd notification protocol

This permit for now to signal readiness in a cleaner way
to systemd.

10 years agoMerge remote-tracking branch 'origin/maint-0.2.5'
Nick Mathewson [Tue, 23 Dec 2014 16:00:02 +0000 (11:00 -0500)] 
Merge remote-tracking branch 'origin/maint-0.2.5'

10 years agochangs file for 13808
Nick Mathewson [Tue, 23 Dec 2014 15:59:48 +0000 (10:59 -0500)] 
changs file for 13808

10 years agowhoops; missing changes file for 14013
Nick Mathewson [Tue, 23 Dec 2014 15:55:25 +0000 (10:55 -0500)] 
whoops; missing changes file for 14013

10 years agotweak whitespace; log bad socket family if bug occurs
Nick Mathewson [Tue, 23 Dec 2014 15:53:40 +0000 (10:53 -0500)] 
tweak whitespace; log bad socket family if bug occurs

10 years agoAdd the transparent proxy getsockopt to the sandbox
Francisco Blas Izquierdo Riera (klondike) [Tue, 23 Dec 2014 15:51:36 +0000 (10:51 -0500)] 
Add the transparent proxy getsockopt to the sandbox

When receiving a trasnsparently proxied request with tor using iptables tor
dies because the appropriate getsockopt calls aren't enabled on the sandbox.

This patch fixes this by adding the two getsockopt calls used when doing
transparent proxying with tor to the sandbox for the getsockopt policy.

This patch is released under the same license as the original file as
long as the author is credited.

Signed-off-by: Francisco Blas Izquierdo Riera (klondike) <klondike@gentoo.org>
10 years agoUse the appropriate call to getsockopt for IPv6 sockets
Francisco Blas Izquierdo Riera (klondike) [Tue, 23 Dec 2014 15:51:33 +0000 (10:51 -0500)] 
Use the appropriate call to getsockopt for IPv6 sockets

The original call to getsockopt to know the original address on transparently
proxyed sockets using REDIRECT in iptables failed with IPv6 addresses because
it assumed all sockets used IPv4.

This patch fixes this by using the appropriate options and adding the headers
containing the needed definitions for these.

This patch is released under the same license as the original file as
long as the author iscredited.

Signed-off-by: Francisco Blas Izquierdo Riera (klondike) <klondike@gentoo.org>
10 years agoTweak channel unit tests so we don't see coverity complaints
Nick Mathewson [Mon, 22 Dec 2014 21:06:05 +0000 (16:06 -0500)] 
Tweak channel unit tests so we don't see coverity complaints

channel_write_*_cell() can delete its argument, so coverity doesn't
like us doing pointer comparison against that argument later.
Silly.

10 years agoMerge remote-tracking branch 'origin/maint-0.2.5'
Nick Mathewson [Mon, 22 Dec 2014 21:02:47 +0000 (16:02 -0500)] 
Merge remote-tracking branch 'origin/maint-0.2.5'

10 years agoMerge remote-tracking branch 'public/bug14013_024' into maint-0.2.5
Nick Mathewson [Mon, 22 Dec 2014 20:58:49 +0000 (15:58 -0500)] 
Merge remote-tracking branch 'public/bug14013_024' into maint-0.2.5

10 years agoWhen decoding a base-{16,32,64} value, clear the target buffer first
Nick Mathewson [Mon, 22 Dec 2014 17:56:35 +0000 (12:56 -0500)] 
When decoding a base-{16,32,64} value, clear the target buffer first

This is a good idea in case the caller stupidly doesn't check the
return value from baseX_decode(), and as a workaround for the
current inconsistent API of base16_decode.

Prevents any fallout from bug 14013.

10 years agoFix a bunch of memory leaks in the unit tests. Found with valgrind
Nick Mathewson [Mon, 22 Dec 2014 17:27:26 +0000 (12:27 -0500)] 
Fix a bunch of memory leaks in the unit tests. Found with valgrind

10 years agoCoverity complained that we were not checking this return value
Nick Mathewson [Mon, 22 Dec 2014 16:13:11 +0000 (11:13 -0500)] 
Coverity complained that we were not checking this return value

10 years agoFix some coverity issues in the unit tests
Nick Mathewson [Mon, 22 Dec 2014 16:13:01 +0000 (11:13 -0500)] 
Fix some coverity issues in the unit tests

10 years agoReflow the changelog again
Nick Mathewson [Mon, 22 Dec 2014 15:54:09 +0000 (10:54 -0500)] 
Reflow the changelog again

10 years agoRewrite some changelog entries
Nick Mathewson [Mon, 22 Dec 2014 15:53:52 +0000 (10:53 -0500)] 
Rewrite some changelog entries

10 years agoRelabel some changelog items; re-sort them into place
Nick Mathewson [Mon, 22 Dec 2014 15:12:43 +0000 (10:12 -0500)] 
Relabel some changelog items; re-sort them into place

10 years agominor teaks fo the changelog
Nick Mathewson [Mon, 22 Dec 2014 15:06:56 +0000 (10:06 -0500)] 
minor teaks fo the changelog

10 years agoAuto-reformat the changelog for 0.2.6.2-alpha
Nick Mathewson [Mon, 22 Dec 2014 15:03:19 +0000 (10:03 -0500)] 
Auto-reformat the changelog for 0.2.6.2-alpha

10 years agoStart on a changelog for 0.2.6.2-alpha
Nick Mathewson [Mon, 22 Dec 2014 15:02:18 +0000 (10:02 -0500)] 
Start on a changelog for 0.2.6.2-alpha

10 years agohave lintchanges check header format.
Nick Mathewson [Mon, 22 Dec 2014 15:00:34 +0000 (10:00 -0500)] 
have lintchanges check header format.

10 years agoResolve issues in changes files
Nick Mathewson [Mon, 22 Dec 2014 14:49:33 +0000 (09:49 -0500)] 
Resolve issues in changes files

10 years agoShort python script to lint the changes files
Nick Mathewson [Mon, 22 Dec 2014 14:34:55 +0000 (09:34 -0500)] 
Short python script to lint the changes files

10 years agoMerge branch 'ticket7356_squashed'
Nick Mathewson [Sun, 21 Dec 2014 19:48:53 +0000 (14:48 -0500)] 
Merge branch 'ticket7356_squashed'

10 years agoFixing mistake in comment.
rl1987 [Tue, 16 Dec 2014 18:52:05 +0000 (20:52 +0200)] 
Fixing mistake in comment.

10 years agoChanges file for 7356
rl1987 [Sun, 23 Nov 2014 19:52:50 +0000 (21:52 +0200)] 
Changes file for 7356

10 years agoUsing channel state lookup macros in connection_or.c.
rl1987 [Sun, 23 Nov 2014 19:42:46 +0000 (21:42 +0200)] 
Using channel state lookup macros in connection_or.c.

10 years agoUsing CHANNEL_FINISHED macro in connection.c
rl1987 [Sun, 23 Nov 2014 19:34:41 +0000 (21:34 +0200)] 
Using CHANNEL_FINISHED macro in connection.c

10 years agoUsing channel state lookup macros in circuitlist.c.
rl1987 [Sun, 23 Nov 2014 19:27:15 +0000 (21:27 +0200)] 
Using channel state lookup macros in circuitlist.c.

10 years agoUsing CHANNEL_IS_OPEN macro in circuitbuild.c
rl1987 [Sun, 23 Nov 2014 19:17:15 +0000 (21:17 +0200)] 
Using CHANNEL_IS_OPEN macro in circuitbuild.c

10 years agoUsing channel state lookup macros in circuitbias.c.
rl1987 [Sun, 23 Nov 2014 19:12:47 +0000 (21:12 +0200)] 
Using channel state lookup macros in circuitbias.c.

10 years agoUsing channel state lookup macros in channeltls.c
rl1987 [Sun, 23 Nov 2014 19:02:00 +0000 (21:02 +0200)] 
Using channel state lookup macros in channeltls.c

10 years agoUse channel state lookup macros in channel.c
rl1987 [Sun, 23 Nov 2014 18:53:13 +0000 (20:53 +0200)] 
Use channel state lookup macros in channel.c

10 years agoUsing macros and inline function for quick lookup of channel state.
rl1987 [Sun, 23 Nov 2014 18:52:24 +0000 (20:52 +0200)] 
Using macros and inline function for quick lookup of channel state.

10 years agoMerge remote-tracking branch 'teor/bug14002-osx-transproxy-ipfw-pf'
Nick Mathewson [Sun, 21 Dec 2014 18:37:40 +0000 (13:37 -0500)] 
Merge remote-tracking branch 'teor/bug14002-osx-transproxy-ipfw-pf'

10 years agoMake log bufer 10k, not 9.78k.
teor [Sun, 21 Dec 2014 18:36:06 +0000 (13:36 -0500)] 
Make log bufer 10k, not 9.78k.

10 years agoFix a comment in tor_addr_parse
teor [Sun, 21 Dec 2014 18:35:42 +0000 (13:35 -0500)] 
Fix a comment in tor_addr_parse

10 years agoFix clang warning, IPv6 address comment, buffer size typo
teor [Sat, 20 Dec 2014 11:20:54 +0000 (22:20 +1100)] 
Fix clang warning, IPv6 address comment, buffer size typo

The address of an array in the middle of a structure will
always be non-NULL. clang recognises this and complains.
Disable the tautologous and redundant check to silence
this warning.

Fixes bug 14001.

10 years agoDocument the case of HiddenServiceDir being defined as relative path.
rl1987 [Sun, 21 Dec 2014 17:05:10 +0000 (19:05 +0200)] 
Document the case of HiddenServiceDir being defined as relative path.

10 years agoFix transparent proxy checks to allow OS X to use ipfw or pf
teor [Sat, 20 Dec 2014 11:27:21 +0000 (22:27 +1100)] 
Fix transparent proxy checks to allow OS X to use ipfw or pf

OS X uses ipfw (FreeBSD) or pf (OpenBSD). Update the transparent
proxy option checks to allow for both ipfw and pf on OS X.

Fixes bug 14002.

10 years agoLLONG_MIN => INT64_MIN.
Nick Mathewson [Fri, 19 Dec 2014 19:12:35 +0000 (14:12 -0500)] 
LLONG_MIN => INT64_MIN.

10 years agoDefine an int64_min when it is missing
Nick Mathewson [Fri, 19 Dec 2014 19:12:22 +0000 (14:12 -0500)] 
Define an int64_min when it is missing

10 years agoFix unit test.
Karsten Loesing [Fri, 19 Dec 2014 17:37:43 +0000 (18:37 +0100)] 
Fix unit test.

Looks like we forgot to update unit tests when we switched from 32-bit to
64-bit ints while tweaking 7cd53b7.

10 years agoMerge branch 'asn-karsten-task-13192-5-squashed'
Nick Mathewson [Fri, 19 Dec 2014 15:35:47 +0000 (10:35 -0500)] 
Merge branch 'asn-karsten-task-13192-5-squashed'

10 years agoHS stats: Add changes file and improve man page.
George Kadianakis [Thu, 18 Dec 2014 15:44:47 +0000 (17:44 +0200)] 
HS stats: Add changes file and improve man page.

10 years agoAdd two hidden-service related statistics.
George Kadianakis [Tue, 2 Dec 2014 12:20:35 +0000 (12:20 +0000)] 
Add two hidden-service related statistics.

The two statistics are:
 1. number of RELAY cells observed on successfully established
    rendezvous circuits; and
 2. number of .onion addresses observed as hidden-service
    directory.

Both statistics are accumulated over 24 hours, obfuscated by rounding
up to the next multiple of a given number and adding random noise,
and written to local file stats/hidserv-stats.

Notably, no statistics will be gathered on clients or services, but
only on relays.

10 years agoMerge remote-tracking branch 'dgoulet/bug13936_025_v2'
Nick Mathewson [Fri, 19 Dec 2014 14:38:46 +0000 (09:38 -0500)] 
Merge remote-tracking branch 'dgoulet/bug13936_025_v2'

10 years agoFix: call circuit_has_opened() for rendezvous circuit
David Goulet [Wed, 10 Dec 2014 18:05:41 +0000 (13:05 -0500)] 
Fix: call circuit_has_opened() for rendezvous circuit

In circuit_get_open_circ_or_launch(), for a rendezvous circuit,
rend_client_rendcirc_has_opened() but circuit_has_opened() is preferred here
since it will call the right function for a specific circuit purpose.

Furthermore, a controller event is triggered where the former did not.

Signed-off-by: David Goulet <dgoulet@ev0ke.net>
10 years agofix a long line
Nick Mathewson [Fri, 12 Dec 2014 13:54:07 +0000 (08:54 -0500)] 
fix a long line

10 years agoReference bug number in changes file
Nick Mathewson [Fri, 12 Dec 2014 13:53:42 +0000 (08:53 -0500)] 
Reference bug number in changes file

10 years agoMerge remote-tracking branch 'meejah/ticket-13941-b'
Nick Mathewson [Fri, 12 Dec 2014 13:53:14 +0000 (08:53 -0500)] 
Merge remote-tracking branch 'meejah/ticket-13941-b'

10 years agoTweak 13942 fix
Nick Mathewson [Fri, 12 Dec 2014 13:49:52 +0000 (08:49 -0500)] 
Tweak 13942 fix

10 years agoPre-check hidden-service-dir permissions/ownership
meejah [Thu, 11 Dec 2014 05:15:04 +0000 (22:15 -0700)] 
Pre-check hidden-service-dir permissions/ownership

See ticket #13942 where Tor dies if you feed it a hidden service
directory with the wrong owner via SETCONF.

10 years agoFix 13941: make calling log_new_relay_greeting() optional.
meejah [Thu, 11 Dec 2014 05:30:14 +0000 (22:30 -0700)] 
Fix 13941: make calling log_new_relay_greeting() optional.

Specifically, only if we're creating secret_id_key do we log the
greeting (and then only if the key is actually created).

11 years agoAdd better support to obfuscate statistics.
Karsten Loesing [Mon, 8 Dec 2014 14:00:58 +0000 (15:00 +0100)] 
Add better support to obfuscate statistics.

11 years agowhen somebody uploads too much, say who tried it
Roger Dingledine [Wed, 10 Dec 2014 06:10:44 +0000 (01:10 -0500)] 
when somebody uploads too much, say who tried it

11 years agoUse END_CIRC_REASON_TORPROTOCOL instead of magic number.
rl1987 [Sun, 7 Dec 2014 13:47:09 +0000 (15:47 +0200)] 
Use END_CIRC_REASON_TORPROTOCOL instead of magic number.

11 years agoAdd fakechans.h to noinst_headers
Nick Mathewson [Thu, 4 Dec 2014 14:19:44 +0000 (09:19 -0500)] 
Add fakechans.h to noinst_headers

11 years agoFix more 64/32 warnings in test_channel.c
Nick Mathewson [Thu, 4 Dec 2014 14:16:49 +0000 (09:16 -0500)] 
Fix more 64/32 warnings in test_channel.c

11 years agoInitialize libevent in circuitmux/destroy_cell_queue test
Nick Mathewson [Thu, 4 Dec 2014 14:11:13 +0000 (09:11 -0500)] 
Initialize libevent in circuitmux/destroy_cell_queue test

11 years agoConstify crypto_pk_get_digest().
George Kadianakis [Mon, 1 Dec 2014 16:12:05 +0000 (16:12 +0000)] 
Constify crypto_pk_get_digest().

11 years agoFix some 32-bit build issues in the tests
Nick Mathewson [Fri, 28 Nov 2014 15:06:10 +0000 (10:06 -0500)] 
Fix some 32-bit build issues in the tests

When comparing 64-bit types, you need to use tt_[ui]64_op().

Found by Jenkins

11 years agoFix a signed/unsigned comparison warning in scheduler_run
Nick Mathewson [Fri, 28 Nov 2014 14:18:17 +0000 (09:18 -0500)] 
Fix a signed/unsigned comparison warning in scheduler_run

11 years agoFix a memory leak in rend_services_introduce
Nick Mathewson [Fri, 28 Nov 2014 04:24:03 +0000 (23:24 -0500)] 
Fix a memory leak in rend_services_introduce

This is CID 1256187 ; bug not in any released tor.

11 years agoFix a likely bug found by coverity in test_scheduler.c.
Nick Mathewson [Fri, 28 Nov 2014 04:21:46 +0000 (23:21 -0500)] 
Fix a likely bug found by coverity in test_scheduler.c.

Andrea, do you agree with this?

This is CID 1256186

11 years agoTweak global_scheduler changes file
Nick Mathewson [Fri, 28 Nov 2014 04:05:21 +0000 (23:05 -0500)] 
Tweak global_scheduler changes file

11 years agoOne more, appease "make check-spaces"
Nick Mathewson [Fri, 28 Nov 2014 03:57:04 +0000 (22:57 -0500)] 
One more, appease "make check-spaces"

11 years agoFix some issues with the scheduler configuration options
Nick Mathewson [Fri, 28 Nov 2014 03:51:13 +0000 (22:51 -0500)] 
Fix some issues with the scheduler configuration options

1) Set them to the values that (according to Rob) avoided performance
   regressions.  This means that the scheduler won't get much exercise
   until we implement KIST or something like it.

2) Rename the options to end with a __, since I think they might be
   going away, and nobody should mess with them.

3) Use the correct types for the option variables. MEMUNIT needs to be a
   uint64_t; UINT needs to be (I know, I know!) an int.

4) Validate the values in options_validate(); do the switch in
   options_act(). This way, setting the option to an invalid value on
   a running Tor will get backed out.

11 years agoFix a 64-bit clang warning
Nick Mathewson [Fri, 28 Nov 2014 03:42:03 +0000 (22:42 -0500)] 
Fix a 64-bit clang warning

11 years agoMerge remote-tracking branch 'andrea/cmux_refactor_configurable_threshold'
Nick Mathewson [Fri, 28 Nov 2014 03:39:46 +0000 (22:39 -0500)] 
Merge remote-tracking branch 'andrea/cmux_refactor_configurable_threshold'

Conflicts:
src/or/or.h
src/test/Makefile.nmake

11 years agoMerge remote-tracking branch 'public/bug13126'
Nick Mathewson [Wed, 26 Nov 2014 14:03:30 +0000 (09:03 -0500)] 
Merge remote-tracking branch 'public/bug13126'

Conflicts:
src/or/or.h

11 years agoMerge branch 'feature9503_squashed'
Nick Mathewson [Tue, 25 Nov 2014 17:49:09 +0000 (12:49 -0500)] 
Merge branch 'feature9503_squashed'