]> git.ipfire.org Git - thirdparty/tor.git/log
thirdparty/tor.git
15 years agoDon't segfault when checking the consensus
Sebastian Hahn [Fri, 26 Feb 2010 07:00:56 +0000 (08:00 +0100)] 
Don't segfault when checking the consensus

15 years agoDon't believe unauthenticated info in a consensus.
Nick Mathewson [Fri, 26 Feb 2010 06:02:20 +0000 (01:02 -0500)] 
Don't believe unauthenticated info in a consensus.

Don't allow anything but directory-signature tokens in a consensus after
the first directory-signature token.  Fixes bug in bandwidth-weights branch.
Found by "outofwords."

15 years agoadd .exe files to gitignore
Nick Mathewson [Thu, 25 Feb 2010 22:02:02 +0000 (17:02 -0500)] 
add .exe files to gitignore

15 years agoFor integers, if !(E<G), then we can infer that E>=G.
Nick Mathewson [Thu, 25 Feb 2010 22:00:14 +0000 (17:00 -0500)] 
For integers, if !(E<G), then we can infer that E>=G.

This means that "if (E<G) {abc} else if (E>=G) {def}" can be replaced with
"if (E<G) {abc} else {def}"

Doing the second test explicitly made my mingw gcc nervous that we might
never be initializing casename.

15 years agoAdd the MIN and MAX macros for platforms that lack them
Nick Mathewson [Thu, 25 Feb 2010 21:48:26 +0000 (16:48 -0500)] 
Add the MIN and MAX macros for platforms that lack them

15 years agoFix 64-bit printf issues in consensus-bw-weights5-merge.
Nick Mathewson [Thu, 25 Feb 2010 21:22:40 +0000 (16:22 -0500)] 
Fix 64-bit printf issues in consensus-bw-weights5-merge.

For my 64-bit Linux system running with GCC 4.4.3-fc12-whatever, you
can't do 'printf("%lld", (int64_t)x);' Instead you need to tell the
compiler 'printf("%lld", (long long int)x);' or else it doesn't
believe the types match.  This is why we added U64_PRINTF_ARG; it
looks like we needed an I64_PRINTF_ARG too.

15 years agoMerge remote branch 'mikeperry/consensus-bw-weights5-merge'
Nick Mathewson [Thu, 25 Feb 2010 21:22:29 +0000 (16:22 -0500)] 
Merge remote branch 'mikeperry/consensus-bw-weights5-merge'

Conflicts:
ChangeLog

15 years agoCheck snprintf return values in format_networkstatus_vote.
Mike Perry [Thu, 25 Feb 2010 19:59:35 +0000 (11:59 -0800)] 
Check snprintf return values in format_networkstatus_vote.

Maybe this is what parakeep was complaining about? Really wish he
would stick around more. Playing these guessing games is not fun :(

15 years agoCast our weights down to ints from int64.
Mike Perry [Thu, 25 Feb 2010 19:42:45 +0000 (11:42 -0800)] 
Cast our weights down to ints from int64.

They are capped to be between 0 and weight_scale (10000) by the code
just before the snprintf.

15 years agoUpdate dir-spec.txt with begin_dir weights.
Mike Perry [Thu, 25 Feb 2010 19:42:24 +0000 (11:42 -0800)] 
Update dir-spec.txt with begin_dir weights.

15 years agoMerge remote branch 'sebastian/manpage'
Nick Mathewson [Thu, 25 Feb 2010 19:32:22 +0000 (14:32 -0500)] 
Merge remote branch 'sebastian/manpage'

15 years agoMerge remote branch 'sebastian/polipo'
Nick Mathewson [Thu, 25 Feb 2010 19:31:53 +0000 (14:31 -0500)] 
Merge remote branch 'sebastian/polipo'

15 years agoRestrict PerConnBWRate|Burst to INT32_MAX, update manpage
Sebastian Hahn [Thu, 25 Feb 2010 11:25:57 +0000 (12:25 +0100)] 
Restrict PerConnBWRate|Burst to INT32_MAX, update manpage

All other bandwidthrate settings are restricted to INT32_MAX, but
this check was forgotten for PerConnBWRate and PerConnBWBurst. Also
update the manpage to reflect the fact that specifying a bandwidth
in terabytes does not make sense, because that value will be too
large.

15 years agoMake unit tests work.
Mike Perry [Wed, 24 Feb 2010 19:17:31 +0000 (11:17 -0800)] 
Make unit tests work.

Still not sure why they generate an empty consensus document..
Too much frobbing going on there.

15 years agoUpdate a section of the exit notice file, give it a changelog.
Sebastian Hahn [Tue, 23 Feb 2010 18:59:34 +0000 (19:59 +0100)] 
Update a section of the exit notice file, give it a changelog.

15 years agoFix some urls in the exit notice
Sebastian Hahn [Mon, 22 Feb 2010 14:18:44 +0000 (15:18 +0100)] 
Fix some urls in the exit notice

Patch by Christian Kujau to fix some links in the exit notice file
(the file you'd use for your DirPortFrontPage), as well as making
the file xhtml compatible. Thanks!

15 years agoUpdate polipo build instructions for OS X 10.6
Sebastian Hahn [Tue, 16 Feb 2010 04:47:24 +0000 (05:47 +0100)] 
Update polipo build instructions for OS X 10.6

15 years agoProper NULL checking for hsdesc publication
Sebastian Hahn [Tue, 23 Feb 2010 16:09:02 +0000 (17:09 +0100)] 
Proper NULL checking for hsdesc publication

Fix a dereference-then-NULL-check sequence. This bug wasn't triggered
in the wild, but we should fix it anyways in case it ever happens.
Also make sure users get a note about this being a bug when they
see it in their log.

Thanks to ekir for discovering and reporting this bug.

15 years agoFix another coverity-spotted memleak
Sebastian Hahn [Tue, 23 Feb 2010 14:02:34 +0000 (15:02 +0100)] 
Fix another coverity-spotted memleak

15 years agoUpdate consensus methods in spec.
Mike Perry [Tue, 23 Feb 2010 02:43:44 +0000 (18:43 -0800)] 
Update consensus methods in spec.

15 years agoAdd consensus method #defines.
Mike Perry [Tue, 23 Feb 2010 02:43:13 +0000 (18:43 -0800)] 
Add consensus method #defines.

15 years agobump to 0.2.2.9-alpha-dev
Roger Dingledine [Tue, 23 Feb 2010 02:23:06 +0000 (21:23 -0500)] 
bump to 0.2.2.9-alpha-dev

15 years agoMark 160 and 161 as Finished. tor-0.2.2.9-alpha
Nick Mathewson [Tue, 23 Feb 2010 01:52:19 +0000 (20:52 -0500)] 
Mark 160 and 161 as Finished.

15 years agoAdd a changelog entry for the bandwidth weightings.
Mike Perry [Tue, 23 Feb 2010 01:04:35 +0000 (17:04 -0800)] 
Add a changelog entry for the bandwidth weightings.

15 years agoRemove misc unnecessary newlines found by new check.
Mike Perry [Sat, 20 Feb 2010 21:46:43 +0000 (13:46 -0800)] 
Remove misc unnecessary newlines found by new check.

15 years agoPatch from karsten to detect unnecessary \n's.
Mike Perry [Sat, 20 Feb 2010 21:44:15 +0000 (13:44 -0800)] 
Patch from karsten to detect unnecessary \n's.

Also fix a spacing issue.

15 years agoAlways weight routers by bandwidth.
Mike Perry [Sun, 14 Feb 2010 22:45:45 +0000 (14:45 -0800)] 
Always weight routers by bandwidth.

Also always predict that we need a high capacity circuit or internal
circuit.

15 years agoUpdate specs for weight computation and use.
Mike Perry [Mon, 15 Feb 2010 02:16:06 +0000 (18:16 -0800)] 
Update specs for weight computation and use.

15 years agoClearly mark directory footer so we parse the new weight line.
Mike Perry [Mon, 15 Feb 2010 01:49:08 +0000 (17:49 -0800)] 
Clearly mark directory footer so we parse the new weight line.

15 years agoImplement bw weighting selection algorithm.
Mike Perry [Wed, 27 Jan 2010 23:01:51 +0000 (15:01 -0800)] 
Implement bw weighting selection algorithm.

15 years agoAdd parsing+verification for bw weight values.
Mike Perry [Fri, 29 Jan 2010 23:40:40 +0000 (15:40 -0800)] 
Add parsing+verification for bw weight values.

15 years agoPerform calculation of consensus bandwidth weights.
Mike Perry [Sat, 30 Jan 2010 01:10:50 +0000 (17:10 -0800)] 
Perform calculation of consensus bandwidth weights.

Also add bwweightscale consensus param. Use it as our
fixed-point calculation width.

15 years agoAdd %lld compat defines.
Mike Perry [Mon, 15 Feb 2010 00:26:41 +0000 (16:26 -0800)] 
Add %lld compat defines.

15 years agoelevate a changelog entry, and get my mailto out of the man page
Roger Dingledine [Mon, 22 Feb 2010 21:19:35 +0000 (16:19 -0500)] 
elevate a changelog entry, and get my mailto out of the man page

15 years agoMerge remote branch 'sebastian/coverity'
Nick Mathewson [Mon, 22 Feb 2010 17:46:43 +0000 (12:46 -0500)] 
Merge remote branch 'sebastian/coverity'

15 years agoMerge remote branch 'sebastian/bug1254'
Nick Mathewson [Mon, 22 Feb 2010 17:45:01 +0000 (12:45 -0500)] 
Merge remote branch 'sebastian/bug1254'

15 years agoMake expand_filename into a tor_strdup() alias on windows.
Nick Mathewson [Mon, 22 Feb 2010 17:42:31 +0000 (12:42 -0500)] 
Make expand_filename into a tor_strdup() alias on windows.

On Windows, we don't have a notion of ~ meaning "our homedir", so we
were deliberately using an #ifdef to avoid calling expand_filename()
in multiple places.  This is silly: The right place to turn a function
into a no-op on a single platform is in the function itself, not in
every single call-site.

15 years agoRemove some redundant code in options_save_current()
Sebastian Hahn [Mon, 22 Feb 2010 11:21:58 +0000 (12:21 +0100)] 
Remove some redundant code in options_save_current()

get_torrc_fname() does the same thing we did in this code, so let's
replace it.

15 years agoExpand homedirs in paths passed to tor-checkkey
Sebastian Hahn [Mon, 22 Feb 2010 11:08:58 +0000 (12:08 +0100)] 
Expand homedirs in paths passed to tor-checkkey

This is so that coverity stops complaining about using a user-supplied
string with the open() syscall. Let's see if it works.

15 years agoZero a cipher completely before freeing it
Sebastian Hahn [Mon, 22 Feb 2010 10:39:29 +0000 (11:39 +0100)] 
Zero a cipher completely before freeing it

We used to only zero the first ptrsize bytes of the cipher. Since
cipher is large enough, we didn't zero too many bytes. Discovered
and fixed by ekir. Fixes bug 1254.

15 years agoBreak early on unknown extendcircuit purpose
Sebastian Hahn [Mon, 22 Feb 2010 09:57:11 +0000 (10:57 +0100)] 
Break early on unknown extendcircuit purpose

Don't continue handling EXTENDCIRCUIT messages when we get an
unknown purpose.

15 years agoFix a memory leak, found by coverity
Sebastian Hahn [Mon, 22 Feb 2010 09:56:54 +0000 (10:56 +0100)] 
Fix a memory leak, found by coverity

15 years agoRemove some redundand code in control.c
Sebastian Hahn [Mon, 22 Feb 2010 09:41:46 +0000 (10:41 +0100)] 
Remove some redundand code in control.c

Found by coverity

15 years agoMerge commit 'sebastian/osxinstructions'
Roger Dingledine [Mon, 22 Feb 2010 09:01:04 +0000 (04:01 -0500)] 
Merge commit 'sebastian/osxinstructions'

15 years agoUpdate the osx dmg creation instructions
Sebastian Hahn [Sat, 20 Feb 2010 23:19:41 +0000 (00:19 +0100)] 
Update the osx dmg creation instructions

Make sure we follow basic whitespace sanity principles, update a
few links

15 years agonetwork-status-version must come first in a vote/consensus
Sebastian Hahn [Mon, 22 Feb 2010 06:58:10 +0000 (07:58 +0100)] 
network-status-version must come first in a vote/consensus

Spec conformance issue: The code didn't force the network-status-version
token to be the first token in a v3 vote or consensus.

Problem discovered by Parakeep.

15 years agowe have two faqs for now
Roger Dingledine [Mon, 22 Feb 2010 05:41:48 +0000 (00:41 -0500)] 
we have two faqs for now

15 years agowe deleted AUTHORS, so don't put it in the tarball
Roger Dingledine [Mon, 22 Feb 2010 05:38:02 +0000 (00:38 -0500)] 
we deleted AUTHORS, so don't put it in the tarball

15 years agoMerge branch 'maint-0.2.1' into new
Roger Dingledine [Mon, 22 Feb 2010 05:24:33 +0000 (00:24 -0500)] 
Merge branch 'maint-0.2.1' into new

Conflicts:

ChangeLog
configure.in
contrib/tor-mingw.nsi.in
src/win32/orconfig.h

15 years agoprepare for 0.2.2.9-alpha
Roger Dingledine [Mon, 22 Feb 2010 05:20:55 +0000 (00:20 -0500)] 
prepare for 0.2.2.9-alpha

15 years agoput 0.2.1.24 in release notes too tor-0.2.1.24
Roger Dingledine [Sun, 21 Feb 2010 22:52:52 +0000 (17:52 -0500)] 
put 0.2.1.24 in release notes too

15 years agobump to 0.2.1.24
Roger Dingledine [Sun, 21 Feb 2010 22:27:12 +0000 (17:27 -0500)] 
bump to 0.2.1.24

15 years agominor fixes in proposal 169
Roger Dingledine [Sun, 21 Feb 2010 22:20:37 +0000 (17:20 -0500)] 
minor fixes in proposal 169

still need to finish reading it, but so far so good

15 years agofix typo and garbage grammar
Roger Dingledine [Sun, 21 Feb 2010 22:18:42 +0000 (17:18 -0500)] 
fix typo and garbage grammar

15 years agoMerge remote branch 'public/cbt-status'
Nick Mathewson [Sat, 20 Feb 2010 23:35:19 +0000 (18:35 -0500)] 
Merge remote branch 'public/cbt-status'

Conflicts:
ChangeLog

15 years agoMerge remote branch 'sebastian/bug1143'
Nick Mathewson [Fri, 19 Feb 2010 21:58:24 +0000 (16:58 -0500)] 
Merge remote branch 'sebastian/bug1143'

15 years agoMake the DNSPort option work with libevent 2.x
Sebastian Hahn [Fri, 19 Feb 2010 16:19:33 +0000 (17:19 +0100)] 
Make the DNSPort option work with libevent 2.x

We need to use evdns_add_server_port_with_base() when configuring
our DNS listener, because libevent segfaults otherwise. Add a macro
in compat_libevent.h to pick the correct implementation depending
on the libevent version.

Fixes bug 1143, found by SwissTorExit

15 years agoFuture-proof the control protocol by ignoring unrecognized keyword args
Nick Mathewson [Thu, 18 Feb 2010 17:47:42 +0000 (12:47 -0500)] 
Future-proof the control protocol by ignoring unrecognized keyword args

15 years agoMake more arguments in control.c properly case-insensitive.
Nick Mathewson [Thu, 18 Feb 2010 17:32:11 +0000 (12:32 -0500)] 
Make more arguments in control.c properly case-insensitive.

15 years agoAdd changelog entry for CBT testing work.
Mike Perry [Thu, 18 Feb 2010 17:40:15 +0000 (09:40 -0800)] 
Add changelog entry for CBT testing work.

15 years agoDescribe the recent timeouts reallocation behavior.
Mike Perry [Wed, 10 Feb 2010 20:25:06 +0000 (12:25 -0800)] 
Describe the recent timeouts reallocation behavior.

15 years agoMove CBT params into consensus.
Mike Perry [Fri, 22 Jan 2010 00:10:02 +0000 (16:10 -0800)] 
Move CBT params into consensus.

15 years agoAdd an event for a case where we drop guards.
Mike Perry [Mon, 11 Jan 2010 18:16:50 +0000 (10:16 -0800)] 
Add an event for a case where we drop guards.

Also add a comment about an odd CBT timeout edgecase.

15 years agoAllow "EXTENDCIRCUIT 0" to omit a path.
Mike Perry [Tue, 29 Dec 2009 03:17:12 +0000 (04:17 +0100)] 
Allow "EXTENDCIRCUIT 0" to omit a path.

15 years agoAdd BUILDTIMEOUT_SET event for CBT stress testing.
Mike Perry [Fri, 25 Dec 2009 11:42:35 +0000 (05:42 -0600)] 
Add BUILDTIMEOUT_SET event for CBT stress testing.

15 years agoMerge remote branch 'origin/maint-0.2.1'
Nick Mathewson [Thu, 18 Feb 2010 17:01:56 +0000 (12:01 -0500)] 
Merge remote branch 'origin/maint-0.2.1'

Conflicts:
ChangeLog
configure.in
contrib/tor-mingw.nsi.in
src/win32/orconfig.h

15 years agoBump version to 0.2.1.23-dev
Nick Mathewson [Thu, 18 Feb 2010 16:57:47 +0000 (11:57 -0500)] 
Bump version to 0.2.1.23-dev

15 years agoAdd changelog for latest openssl fix
Nick Mathewson [Thu, 18 Feb 2010 16:54:26 +0000 (11:54 -0500)] 
Add changelog for latest openssl fix

15 years agoFix compile
Sebastian Hahn [Thu, 18 Feb 2010 12:08:57 +0000 (13:08 +0100)] 
Fix compile

15 years agoEven more conservative option-setting for SSL renegotiation.
Nick Mathewson [Thu, 18 Feb 2010 04:55:03 +0000 (23:55 -0500)] 
Even more conservative option-setting for SSL renegotiation.

This time, set the SSL3_FLAGS_ALLOW_UNSAFE_RENEGOTIATION flag on every
version before OpenSSL 0.9.8l.  I can confirm that the option value (0x0010)
wasn't reused until OpenSSL 1.0.0beta3.

15 years agoadd in the apple incantations to get tls renegotiation to work.
Andrew Lewman [Wed, 17 Feb 2010 18:43:33 +0000 (13:43 -0500)] 
add in the apple incantations to get tls renegotiation to work.

15 years agofix the win32 build instructions for openssl.
Andrew Lewman [Wed, 17 Feb 2010 18:37:51 +0000 (13:37 -0500)] 
fix the win32 build instructions for openssl.

15 years agoMerge commit 'sebastian/oldstuff'
Roger Dingledine [Tue, 16 Feb 2010 07:34:52 +0000 (02:34 -0500)] 
Merge commit 'sebastian/oldstuff'

Conflicts:

ChangeLog

15 years agoRemove legacy files from main source distribution
Sebastian Hahn [Sun, 7 Feb 2010 06:39:00 +0000 (07:39 +0100)] 
Remove legacy files from main source distribution

The AUTHORS file was pretty outdated. Its contents moved onto the
people page. Design paper and roadmaps moved to the projects
directory in svn.

15 years agoBuild correctly with Libevent 2.0.4-alpha and later
Nick Mathewson [Mon, 15 Feb 2010 21:47:47 +0000 (16:47 -0500)] 
Build correctly with Libevent 2.0.4-alpha and later

15 years agogive it a blurb, update the date tor-0.2.1.23
Roger Dingledine [Sat, 13 Feb 2010 19:10:57 +0000 (14:10 -0500)] 
give it a blurb, update the date

15 years agoRemove the --enable-iphone option as needless.
Nick Mathewson [Sat, 13 Feb 2010 04:06:05 +0000 (23:06 -0500)] 
Remove the --enable-iphone option as needless.

On or-talk, Marco Bonetti reports that recent iPhone SDKs build
Tor fine without it.

15 years agoRemove the --enable-debug option for configure, it didn't do anything.
Sebastian Hahn [Sat, 13 Feb 2010 00:19:26 +0000 (01:19 +0100)] 
Remove the --enable-debug option for configure, it didn't do anything.

15 years agonew dannenberg address; make moria2's demise official.
Roger Dingledine [Fri, 12 Feb 2010 19:31:08 +0000 (14:31 -0500)] 
new dannenberg address; make moria2's demise official.

15 years agoprepare for 0.2.1.23
Roger Dingledine [Fri, 12 Feb 2010 17:35:40 +0000 (12:35 -0500)] 
prepare for 0.2.1.23

15 years agoClean up whitespace
Nick Mathewson [Thu, 11 Feb 2010 05:24:23 +0000 (00:24 -0500)] 
Clean up whitespace

15 years agoupdated win32 build instructions with new mingw and msys versions.
Andrew Lewman [Thu, 11 Feb 2010 03:50:23 +0000 (22:50 -0500)] 
updated win32 build instructions with new mingw and msys versions.

15 years agoclean up the documentation, break out sections for osx compiles.
Andrew Lewman [Thu, 11 Feb 2010 02:44:19 +0000 (21:44 -0500)] 
clean up the documentation, break out sections for osx compiles.

15 years agoAdd Windows version detection for Vista and 7
Sebastian Hahn [Sun, 7 Feb 2010 04:18:50 +0000 (05:18 +0100)] 
Add Windows version detection for Vista and 7

Vista is Windows 6.0, and 7 is Windows 6.1. Fixes bug 1097.

Also fix a coding style violation.

15 years agoAdd changelog for memcpy bug, with credit for "memcpyfail"
Nick Mathewson [Tue, 9 Feb 2010 18:08:49 +0000 (13:08 -0500)] 
Add changelog for memcpy bug, with credit for "memcpyfail"

15 years agoMerge remote branch 'origin/maint-0.2.1'
Nick Mathewson [Tue, 9 Feb 2010 17:58:25 +0000 (12:58 -0500)] 
Merge remote branch 'origin/maint-0.2.1'

15 years agoMerge remote branch 'sebastian/bug925'
Nick Mathewson [Tue, 9 Feb 2010 17:50:54 +0000 (12:50 -0500)] 
Merge remote branch 'sebastian/bug925'

15 years agoMerge remote branch 'sebastian/bug1238'
Nick Mathewson [Tue, 9 Feb 2010 17:50:45 +0000 (12:50 -0500)] 
Merge remote branch 'sebastian/bug1238'

15 years agoMerge remote branch 'sebastian/exit-notice'
Nick Mathewson [Tue, 9 Feb 2010 17:47:38 +0000 (12:47 -0500)] 
Merge remote branch 'sebastian/exit-notice'

15 years agoMake tor_addr_copy() conform to memcpy requirements
Nick Mathewson [Tue, 9 Feb 2010 17:32:10 +0000 (12:32 -0500)] 
Make tor_addr_copy() conform to memcpy requirements

The src and dest of a memcpy() call aren't supposed to overlap,
but we were sometimes calling tor_addr_copy() as a no-op.

Also, tor_addr_assign was a redundant copy of tor_addr_copy(); this patch
removes it.

15 years agoFix a whitespace violation
Sebastian Hahn [Fri, 5 Feb 2010 16:04:33 +0000 (17:04 +0100)] 
Fix a whitespace violation

15 years agoSpeed up the execution of exit_policy_is_general_exit_helper()
Sebastian Hahn [Fri, 5 Feb 2010 15:58:24 +0000 (16:58 +0100)] 
Speed up the execution of exit_policy_is_general_exit_helper()

It isn't necessary to walk through all possible subnets when the policy
we're looking at doesn't touch that subnet.

15 years agoAnother unit test for exit_policy_is_general_exit()
Sebastian Hahn [Fri, 5 Feb 2010 10:59:15 +0000 (11:59 +0100)] 
Another unit test for exit_policy_is_general_exit()

15 years agoFix the path to the exit-notice file in torrc.sample
Sebastian Hahn [Mon, 8 Feb 2010 22:33:22 +0000 (23:33 +0100)] 
Fix the path to the exit-notice file in torrc.sample

Also reword it slightly to reflect the fact that no packagers
ship the file.

15 years ago0/8 doesn't count as a /8 subnet towards an Exit flag
Sebastian Hahn [Fri, 5 Feb 2010 12:40:31 +0000 (13:40 +0100)] 
0/8 doesn't count as a /8 subnet towards an Exit flag

15 years agoDon't spam controllers with TOO_MANY_CONNECTIONS events
Sebastian Hahn [Sun, 31 Jan 2010 20:54:04 +0000 (21:54 +0100)] 
Don't spam controllers with TOO_MANY_CONNECTIONS events

We implemented ratelimiting for warnings going into the logfile, but didn't
rate-limit controller events. Now both log warnings and controller events
are rate-limited.

15 years agoDon't use gethostbyname() in resolve_my_address()
Sebastian Hahn [Mon, 8 Feb 2010 14:35:34 +0000 (15:35 +0100)] 
Don't use gethostbyname() in resolve_my_address()

Tor has tor_lookup_hostname(), which prefers ipv4 addresses automatically.
Bug 1244 occured because gethostbyname() returned an ipv6 address, which
Tor cannot handle currently. Fixes bug 1244; bugfix on 0.0.2pre25.
Reported by Mike Mestnik.

15 years agoMerge commit 'origin/maint-0.2.1'
Nick Mathewson [Mon, 8 Feb 2010 03:34:08 +0000 (22:34 -0500)] 
Merge commit 'origin/maint-0.2.1'

15 years agolookup_last_hid_serv_request() could overflow and leak memory
Sebastian Hahn [Sun, 7 Feb 2010 05:30:55 +0000 (06:30 +0100)] 
lookup_last_hid_serv_request() could overflow and leak memory

The problem was that we didn't allocate enough memory on 32-bit
platforms with 64-bit time_t. The memory leak occured every time
we fetched a hidden service descriptor we've fetched before.

15 years agoFix building of RPMs. Patch by Erinn Clark.
Sebastian Hahn [Sat, 6 Feb 2010 02:10:51 +0000 (03:10 +0100)] 
Fix building of RPMs. Patch by Erinn Clark.