]> git.ipfire.org Git - thirdparty/tor.git/log
thirdparty/tor.git
13 years agoCheck more thoroughly for dups when parsing networkstatus parameters
Nick Mathewson [Mon, 7 May 2012 16:38:28 +0000 (12:38 -0400)] 
Check more thoroughly for dups when parsing networkstatus parameters

See changes file for details.

Partial fix for bug 5786; fix on 0.2.2.2-alpha.

13 years agoApply a patch from Gisle Vanem to make tor-gencert build under MSVC
Nick Mathewson [Mon, 7 May 2012 15:31:08 +0000 (11:31 -0400)] 
Apply a patch from Gisle Vanem to make tor-gencert build under MSVC

(Note: It makes sense to use tor-gencert on Windows for testing
purposes only.  If you are a directory authority operator, and you
are contemplating running tor-gencert on a Windows box in an actual
production environment, you are probably making a mistake.)

13 years agoMerge branch 'bug5645_take2'
Nick Mathewson [Mon, 7 May 2012 15:09:50 +0000 (11:09 -0400)] 
Merge branch 'bug5645_take2'

13 years agoMake a cast less const-violating; make a field size explicit.
Nick Mathewson [Mon, 7 May 2012 15:09:02 +0000 (11:09 -0400)] 
Make a cast less const-violating; make a field size explicit.

13 years agoReorder rend_mid_rendezvous() to do protocol violation checks on top.
George Kadianakis [Mon, 7 May 2012 15:05:54 +0000 (18:05 +0300)] 
Reorder rend_mid_rendezvous() to do protocol violation checks on top.

13 years agoMerge branch 'bug5070_take2'
Nick Mathewson [Mon, 7 May 2012 15:03:33 +0000 (11:03 -0400)] 
Merge branch 'bug5070_take2'

13 years agoUsing %d to printf an enum may not be by-the-standard okay.
Nick Mathewson [Mon, 7 May 2012 15:02:17 +0000 (11:02 -0400)] 
Using %d to printf an enum may not be by-the-standard okay.

13 years agoFix an overwide line
Nick Mathewson [Mon, 7 May 2012 14:59:23 +0000 (10:59 -0400)] 
Fix an overwide line

13 years agoFix comments: There is no such thing as a NUL pointer
Nick Mathewson [Mon, 7 May 2012 14:57:59 +0000 (10:57 -0400)] 
Fix comments: There is no such thing as a NUL pointer

13 years agoChanges file for bug 5070
Nick Mathewson [Mon, 7 May 2012 13:56:12 +0000 (09:56 -0400)] 
Changes file for bug 5070

13 years agoDocument some transports.c behaviors and assumptions
Nick Mathewson [Mon, 7 May 2012 13:55:14 +0000 (09:55 -0400)] 
Document some transports.c behaviors and assumptions

13 years agofix quad typo in comments
Roger Dingledine [Mon, 7 May 2012 05:54:53 +0000 (01:54 -0400)] 
fix quad typo in comments

i assume if nickm maintained "libeven" this would never have been
introduced. :)

13 years agoFix bug 5762: detect missing accept4 that gives ENOSYS
Nick Mathewson [Fri, 4 May 2012 17:17:20 +0000 (13:17 -0400)] 
Fix bug 5762: detect missing accept4 that gives ENOSYS

We had been checking for EINVAL, but that means that SOCK_* isn't
supported, not that the syscall itself is missing.

Bugfix on 0.2.3.1-alpha, which started to use accept4.

13 years agoMake transports.c logs a bit more helpful.
George Kadianakis [Thu, 3 May 2012 01:38:53 +0000 (04:38 +0300)] 
Make transports.c logs a bit more helpful.

13 years agoAdd a missing ntohl to tell_controller_about_resolve_result
Nick Mathewson [Tue, 1 May 2012 20:39:49 +0000 (16:39 -0400)] 
Add a missing ntohl to tell_controller_about_resolve_result

Fix for bug 5723; bugfix on 0.2.3.1-alpha (commit 22f723e4)

13 years agobump to 0.2.3.15-alpha-dev
Roger Dingledine [Mon, 30 Apr 2012 20:43:08 +0000 (16:43 -0400)] 
bump to 0.2.3.15-alpha-dev

13 years agobump to 0.2.3.15-alpha tor-0.2.3.15-alpha
Roger Dingledine [Mon, 30 Apr 2012 20:16:30 +0000 (16:16 -0400)] 
bump to 0.2.3.15-alpha

13 years agofold in new changes entries
Roger Dingledine [Mon, 30 Apr 2012 20:14:20 +0000 (16:14 -0400)] 
fold in new changes entries

13 years agoRemove __ from HAVE_EXTERN_ENVIRON_DECLARED__
Nick Mathewson [Mon, 30 Apr 2012 16:52:16 +0000 (12:52 -0400)] 
Remove __ from HAVE_EXTERN_ENVIRON_DECLARED__

I think that the trailing __ got added in false analogy to
HAVE_MACRO__func__, HAVE_MACRO__FUNC__, and HAVE_MACRO__FUNCTION__.
But those macros actually indicate the presence of __func__,
__FUNC__, and __FUNCTION__ respectively.  The __ at the end of
HAVE_EXTERN_ENVIRON_DECLARED would only be appropriate if the
environ were declared__, whatever that means.

(As a side-note, HAVE_MACRO__func__ and so on should probably be
renamed HAVE_MACRO___func__ and so on.  But that can wait.)

This is an identifier renaming only.

13 years agoFix headers in test for whether environ is declared in stdlib/unistd
Nick Mathewson [Mon, 30 Apr 2012 16:48:33 +0000 (12:48 -0400)] 
Fix headers in test for whether environ is declared in stdlib/unistd

We'd had our configure.in test include unistd.h unconditionally,
which would fail on Windows/mingw, even though environ _was_
declared there.  Fix for 5704; bugfix on 0.2.3.13-alpha.

Thanks to Erinn for finding this and rransom for figuring out the
problem.

13 years agoSeveral mingw/msvc/cross-compilation fixes
Nick Mathewson [Thu, 26 Apr 2012 22:34:47 +0000 (18:34 -0400)] 
Several mingw/msvc/cross-compilation fixes

They boil down to:
 - MS_WINDOWS is dead and replaced with _WIN32, but we let a few
   instances creep in when we merged Esteban's tests.
 - Capitalizing windows header names confuses mingw.
 - #ifdef 0 ain't C.
 - One unit test wasn't compiled on windows, but was being listed
   anyway.
 - One unit test was checking for the wrong value.

Gisle Vanem found and fixed the latter 3 issues.

13 years agoMerge remote-tracking branch 'arma/bug5623'
Nick Mathewson [Tue, 24 Apr 2012 19:25:21 +0000 (15:25 -0400)] 
Merge remote-tracking branch 'arma/bug5623'

13 years agopeel off some unnecessary parens
Roger Dingledine [Tue, 24 Apr 2012 16:26:00 +0000 (12:26 -0400)] 
peel off some unnecessary parens

13 years agoMerge remote-tracking branch 'nickm/bug2497'
Roger Dingledine [Tue, 24 Apr 2012 16:19:07 +0000 (12:19 -0400)] 
Merge remote-tracking branch 'nickm/bug2497'

13 years agoMerge remote-tracking branch 'public/bug5103'
Nick Mathewson [Tue, 24 Apr 2012 15:41:24 +0000 (11:41 -0400)] 
Merge remote-tracking branch 'public/bug5103'

13 years agoMerge remote-tracking branch 'public/bug4572'
Nick Mathewson [Tue, 24 Apr 2012 15:38:51 +0000 (11:38 -0400)] 
Merge remote-tracking branch 'public/bug4572'

13 years agoAdd a check_no_tls_errors() to read_to_buf_tls
Arturo Filastò [Wed, 22 Feb 2012 08:29:16 +0000 (00:29 -0800)] 
Add a check_no_tls_errors() to read_to_buf_tls

Fixes bug #4528 "read_to_buf_tls(): Inconsistency in code".

This check was added back in 0.1.0.3-rc, but somehow we forgot to
leave it in when we refactored read_to_buf_tls in 0.1.0.5-rc.

(patch by Arturo; commit message and changes file by nickm)

13 years agobe willing to use nodes in excludeexitnodes as directory mirrors
Roger Dingledine [Tue, 24 Apr 2012 15:26:05 +0000 (11:26 -0400)] 
be willing to use nodes in excludeexitnodes as directory mirrors

fixes bug 5623.

13 years agoMerge branch 'bug4438-v2'
Nick Mathewson [Tue, 24 Apr 2012 15:18:41 +0000 (11:18 -0400)] 
Merge branch 'bug4438-v2'

13 years agoTweak the bug4438 fix a little: different check, better log
Nick Mathewson [Wed, 28 Mar 2012 14:47:17 +0000 (10:47 -0400)] 
Tweak the bug4438 fix a little: different check, better log

Instead of checking for 'rejected' and calling everything else okay,
let's check for 'outdated' and call everythign else a problem.  This
way we don't risk missing future errors so much.

When logging a message that _looks_ like an error message at info, we
should mention that it isn't really a problem.

13 years agoMerge remote-tracking branch 'public/bug5112'
Nick Mathewson [Tue, 24 Apr 2012 15:14:22 +0000 (11:14 -0400)] 
Merge remote-tracking branch 'public/bug5112'

13 years agoMerge remote-tracking branch 'public/bug5537'
Nick Mathewson [Tue, 24 Apr 2012 15:05:50 +0000 (11:05 -0400)] 
Merge remote-tracking branch 'public/bug5537'

13 years agoAdd changes file for miniupnpc 1.6 fix
Nick Mathewson [Tue, 24 Apr 2012 14:58:16 +0000 (10:58 -0400)] 
Add changes file for miniupnpc 1.6 fix

13 years agoFix compile error against miniupnpc-1.6 when --enable-upnp
Anthony G. Basile [Thu, 22 Mar 2012 16:09:40 +0000 (12:09 -0400)] 
Fix compile error against miniupnpc-1.6 when --enable-upnp

The bump from miniupnpc-1.5 to 1.6 changes the definition of
two functions used by tor-fw-helper-upnp.c, upnpDiscover() and
UPNP_AddPortMapping().  This patch addresses this and adds a
check in configure.in for backwards compatibility.

Thanks to Nickolay Kolchin-Semyonov for some hints.

X-Tor-Bug-URL: https://trac.torproject.org/projects/tor/ticket/5434
X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=376621
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
13 years agobump to 0.2.3.14-alpha-dev
Roger Dingledine [Mon, 23 Apr 2012 07:34:04 +0000 (03:34 -0400)] 
bump to 0.2.3.14-alpha-dev

13 years agogive 0.2.3.14-alpha a blurb tor-0.2.3.14-alpha
Roger Dingledine [Mon, 23 Apr 2012 07:22:42 +0000 (03:22 -0400)] 
give 0.2.3.14-alpha a blurb

13 years agobump to 0.2.3.14-alpha
Roger Dingledine [Mon, 23 Apr 2012 07:17:28 +0000 (03:17 -0400)] 
bump to 0.2.3.14-alpha

13 years agoupdate the torrc.sample timestamp, and clarify socksport 0
Roger Dingledine [Mon, 23 Apr 2012 07:10:40 +0000 (03:10 -0400)] 
update the torrc.sample timestamp, and clarify socksport 0

13 years agofold in remaining changes
Roger Dingledine [Mon, 23 Apr 2012 06:36:19 +0000 (02:36 -0400)] 
fold in remaining changes

13 years agoMerge remote-tracking branch 'nickm/bug5438'
Roger Dingledine [Mon, 23 Apr 2012 06:03:40 +0000 (02:03 -0400)] 
Merge remote-tracking branch 'nickm/bug5438'

13 years agofurther changelog cleanups
Roger Dingledine [Mon, 23 Apr 2012 05:22:59 +0000 (01:22 -0400)] 
further changelog cleanups

13 years agoDon't reset intro-point creation rate-limiting timer
Robert Ransom [Tue, 17 Apr 2012 12:40:36 +0000 (05:40 -0700)] 
Don't reset intro-point creation rate-limiting timer

Previously, we would reset it at the drop of a hat -- every time a second
passes without any of the intro-point circs already launched for the
service failing.

Fixes bug 4607.

13 years agoMerge remote-tracking branch 'public/bug5647_cleanup'
Nick Mathewson [Fri, 20 Apr 2012 15:28:57 +0000 (11:28 -0400)] 
Merge remote-tracking branch 'public/bug5647_cleanup'

13 years agostart to fold in changelog entries
Roger Dingledine [Thu, 19 Apr 2012 23:14:47 +0000 (19:14 -0400)] 
start to fold in changelog entries

13 years agoMerge remote-tracking branch 'asn-mytor/bug5601'
Nick Mathewson [Thu, 19 Apr 2012 21:53:19 +0000 (17:53 -0400)] 
Merge remote-tracking branch 'asn-mytor/bug5601'

13 years agoMake base64_decode in rend_parse_client_keys more foolproof
Nick Mathewson [Thu, 19 Apr 2012 21:13:47 +0000 (17:13 -0400)] 
Make base64_decode in rend_parse_client_keys more foolproof

In general, whenever we can, we should be doing
  base64_decode(buf, sizeof(buf), s, strlen(s)),
and not
  base_64_decode(buf, expr1, s, expr2)
where we hope that expr1 is a good name for the size of buf and expr2
is a good formula for the length of the base64 expression in s.

13 years agoMerge remote-tracking branch 'origin/maint-0.2.2'
Nick Mathewson [Thu, 19 Apr 2012 21:08:09 +0000 (17:08 -0400)] 
Merge remote-tracking branch 'origin/maint-0.2.2'

13 years agoinitial round of changelog stanza cleanup
Roger Dingledine [Thu, 19 Apr 2012 19:10:33 +0000 (15:10 -0400)] 
initial round of changelog stanza cleanup

13 years agoFix a log-uninitialized-buffer bug.
Nick Mathewson [Thu, 19 Apr 2012 03:02:09 +0000 (23:02 -0400)] 
Fix a log-uninitialized-buffer bug.

Fix for 5647; bugfix on 0.2.1.5-alpha.

13 years agoMerge remote-tracking branch 'origin/maint-0.2.2'
Nick Mathewson [Thu, 19 Apr 2012 02:30:02 +0000 (22:30 -0400)] 
Merge remote-tracking branch 'origin/maint-0.2.2'

Conflicts:
src/or/rendservice.c

Conflicts were due to new NON_ANONYMOUS_MODE_ENABLED tor2web code; I
think I resolved them correctly.

13 years agorend_service_introduce(): do protocol violation check before anything else.
George Kadianakis [Wed, 18 Apr 2012 22:47:37 +0000 (00:47 +0200)] 
rend_service_introduce(): do protocol violation check before anything else.

(Cherry-picked from 6ba13e4 by nickm)

13 years agoRemove needless check for a buffer that could not be NULL.
Nick Mathewson [Wed, 18 Apr 2012 14:38:39 +0000 (10:38 -0400)] 
Remove needless check for a buffer that could not be NULL.

Fixes coverity CID 508: coverity scan doesn't like checking a
variable for non-NULL after it has been definitely dereferenced.

This should take us back down to zero coverity issues.

13 years agoDon't fetch v2 networkstatuses from caches, even if auths are down
Nick Mathewson [Tue, 17 Apr 2012 16:09:19 +0000 (12:09 -0400)] 
Don't fetch v2 networkstatuses from caches, even if auths are down

Fix for 5635; fix on 0.2.2.26-beta, where caches stopped fetching this
information.

13 years agoDocument unit of bandwidth related options in sample torrc.
Peter Palfrader [Fri, 13 Apr 2012 18:25:36 +0000 (20:25 +0200)] 
Document unit of bandwidth related options in sample torrc.

13 years agoTrivially refactor validate_pluggable_transports_config().
George Kadianakis [Wed, 11 Apr 2012 23:35:46 +0000 (01:35 +0200)] 
Trivially refactor validate_pluggable_transports_config().

* Remove the ugly if statement.
* constify 'bridge_info_t' in SMARTLIST_FOREACH_BEGIN.

13 years agoImprove the message of validate_pluggable_transports_config().
George Kadianakis [Wed, 11 Apr 2012 23:27:58 +0000 (01:27 +0200)] 
Improve the message of validate_pluggable_transports_config().

13 years agoObsolete GiveGuardFlagTo_CVE_2011_2768_VulnerableRelays
Nick Mathewson [Wed, 11 Apr 2012 14:59:11 +0000 (10:59 -0400)] 
Obsolete GiveGuardFlagTo_CVE_2011_2768_VulnerableRelays

Closes ticket 4572.

13 years agoMerge remote-tracking branch 'origin/maint-0.2.2'
Nick Mathewson [Wed, 11 Apr 2012 14:06:49 +0000 (10:06 -0400)] 
Merge remote-tracking branch 'origin/maint-0.2.2'

13 years agoMerge branch 'bug5593' into maint-0.2.2
Nick Mathewson [Wed, 11 Apr 2012 14:04:31 +0000 (10:04 -0400)] 
Merge branch 'bug5593' into maint-0.2.2

13 years agoMerge remote-tracking branch 'origin/maint-0.2.2'
Nick Mathewson [Wed, 11 Apr 2012 13:26:37 +0000 (09:26 -0400)] 
Merge remote-tracking branch 'origin/maint-0.2.2'

13 years agoUpdate to the April 2012 GeoIP database.
Karsten Loesing [Wed, 11 Apr 2012 12:15:49 +0000 (14:15 +0200)] 
Update to the April 2012 GeoIP database.

13 years agoInclude a Host: header with any HTTP/1.1 proxy request
Nick Mathewson [Tue, 10 Apr 2012 16:00:20 +0000 (12:00 -0400)] 
Include a Host: header with any HTTP/1.1 proxy request

Bugfix on 0.2.2.1-alpha, which added the orginal HTTP proxy
authentication code.  Fix for bug 5593.

13 years agoSimplify DH prime generation logic some.
Sebastian Hahn [Sat, 7 Apr 2012 23:07:53 +0000 (01:07 +0200)] 
Simplify DH prime generation logic some.

This is just refactoring work here. The old logic was kind of
convoluted, especially after the bug 5572 fix. We don't actually need to
distinguish so many cases here. Dropping detection of the
"!old_options || !old_options->DynamicDHGroups" case is fine because
that's the same that we'd do for clients.

Also add a changes file for bug 5572.

13 years agofix bug 5572
Daniel 'koolfy' Faucon [Sat, 7 Apr 2012 21:56:52 +0000 (23:56 +0200)] 
fix bug 5572

13 years agoMerge remote-tracking branch 'origin/maint-0.2.2'
Nick Mathewson [Thu, 5 Apr 2012 01:05:42 +0000 (21:05 -0400)] 
Merge remote-tracking branch 'origin/maint-0.2.2'

13 years agoWrap long line; strlen("ides")<strlen("turtles").
Nick Mathewson [Thu, 5 Apr 2012 01:05:19 +0000 (21:05 -0400)] 
Wrap long line; strlen("ides")<strlen("turtles").

13 years agoides has become turtles, and gotten a new IP address
Sebastian Hahn [Wed, 4 Apr 2012 23:51:04 +0000 (01:51 +0200)] 
ides has become turtles, and gotten a new IP address

As per ticket 5569

13 years agoMerge remote-tracking branch 'asn-mytor/bug5558_take2'
Nick Mathewson [Tue, 3 Apr 2012 16:06:07 +0000 (12:06 -0400)] 
Merge remote-tracking branch 'asn-mytor/bug5558_take2'

13 years agotor_vsscanf(): Don't return -1 if '%%' doesn't match.
George Kadianakis [Tue, 3 Apr 2012 14:20:24 +0000 (16:20 +0200)] 
tor_vsscanf(): Don't return -1 if '%%' doesn't match.

tor_vsscanf() is supposed to return the current number of matches on
match failure.

13 years agoSuppress "decided to publish new descriptor" message when not a server
Nick Mathewson [Mon, 2 Apr 2012 22:54:16 +0000 (18:54 -0400)] 
Suppress "decided to publish new descriptor" message when not a server

The message only means that we're publishing a new descriptor when we
are actually in some kind of server mode, and publication is on.

Fix for bug 3942; bugfix on 0.2.3.2-alpha.

13 years agoAdd a warning about settign a bridge in MyFamily
Daniel 'koolfy' Faucon [Sun, 1 Apr 2012 13:36:13 +0000 (15:36 +0200)] 
Add a warning about settign a bridge in MyFamily

13 years agoMake it clear that bridges should not be set in MyFamily
Daniel 'koolfy' Faucon [Thu, 29 Mar 2012 02:28:20 +0000 (04:28 +0200)] 
Make it clear that bridges should not be set in MyFamily

13 years agoMerge branch 'maint-0.2.2'
Roger Dingledine [Sun, 1 Apr 2012 20:03:16 +0000 (16:03 -0400)] 
Merge branch 'maint-0.2.2'

Conflicts:
src/or/config.c

13 years agoput a _ before or_options_t elements that aren't configurable
Roger Dingledine [Sun, 1 Apr 2012 19:59:38 +0000 (15:59 -0400)] 
put a _ before or_options_t elements that aren't configurable

it's fine with me if we change the current convention, but we should
actually decide to change it if we want to.

13 years agoBridgePassword was never for debugging
Roger Dingledine [Sun, 1 Apr 2012 19:59:00 +0000 (15:59 -0400)] 
BridgePassword was never for debugging

It is for the not-yet-implemented bridge community design.

13 years agoMerge remote-tracking branch 'origin/maint-0.2.2'
Nick Mathewson [Sun, 1 Apr 2012 04:46:52 +0000 (00:46 -0400)] 
Merge remote-tracking branch 'origin/maint-0.2.2'

Conflicts:
src/or/config.c

Conflict was in or_options_free, where two newly added fields had free
calls in the same place.

13 years agoDo not use strcmp() to compare an http authenticator to its expected value
Nick Mathewson [Sun, 1 Apr 2012 02:51:28 +0000 (22:51 -0400)] 
Do not use strcmp() to compare an http authenticator to its expected value

This fixes a side-channel attack on the (fortunately unused!)
BridgePassword option for bridge authorities.  Fix for bug 5543;
bugfix on 0.2.0.14-alpha.

13 years agoRemove the deprecated FooListenAddress options from torrc.sample.in
Nick Mathewson [Fri, 30 Mar 2012 20:52:22 +0000 (16:52 -0400)] 
Remove the deprecated FooListenAddress options from torrc.sample.in

Bug 5438.

13 years agoWe allow IPv6 connections, don't use sockaddr_in with getsockname
Nick Mathewson [Fri, 30 Mar 2012 20:43:52 +0000 (16:43 -0400)] 
We allow IPv6 connections, don't use sockaddr_in with getsockname

This fixes client_check_address_changed to work better with IPv6 Tor
clients, and prevents them from spewing errors. Fix for ticket 5537.

13 years agoTwiddle ROUTER_{MAX_COSMETIC_TIME_DIFFERENCE,MAX_AGE_TO_PUBLISH}
Nick Mathewson [Fri, 30 Mar 2012 19:38:16 +0000 (15:38 -0400)] 
Twiddle ROUTER_{MAX_COSMETIC_TIME_DIFFERENCE,MAX_AGE_TO_PUBLISH}

This is ticket 2479. Roger's original explanation was:

   We have a series of bugs where relays publish a descriptor within
   12 hours of their last descriptor, but the authorities drop it
   because it's not different "enough" from the last one and it's
   too close to the last one.

   The original goal of this idea was to a) reduce the number of new
   descriptors authorities accept (and thus have to store) and b)
   reduce the total number of descriptors that clients and mirrors
   fetch. It's a defense against bugs where relays publish a new
   descriptor every minute.

   Now that we're putting out one consensus per hour, we're doing
   better at the total damage that can be caused by 'b'.

   There are broader-scale design changes that would help here, and
   we've had a trac entry open for years about how relays should
   recognize that they're not in the consensus, or recognize when
   their publish failed, and republish sooner.

   In the mean time, I think we should change some of the parameters
   to make the problem less painful.

13 years agoFix comment typo
Robert Ransom [Fri, 30 Mar 2012 14:58:32 +0000 (07:58 -0700)] 
Fix comment typo

13 years agoHave tor_parse_*long functions check for negative bases
Nick Mathewson [Fri, 30 Mar 2012 14:34:05 +0000 (10:34 -0400)] 
Have tor_parse_*long functions check for negative bases

One of our unit tests checks that they behave correctly (giving an
error) when the base is negative.  But there isn't a guarantee that
strtol and friends actually handle negative bases correctly.

Found by Coverity Scan; fix for CID 504.

13 years agoFix a couple of "unused assigned value" warnings in parse_config tests
Nick Mathewson [Fri, 30 Mar 2012 14:26:34 +0000 (10:26 -0400)] 
Fix a couple of "unused assigned value" warnings in parse_config tests

Coverity doesn't like the fact that we were storing the value of
parse_config_line_from_str() but not checking it in a couple of
cases.

Fixes CID 505 and 506.

13 years agoFix a memory leak in an error case of SAFECOOKIE authentication.
Nick Mathewson [Fri, 30 Mar 2012 14:20:48 +0000 (10:20 -0400)] 
Fix a memory leak in an error case of SAFECOOKIE authentication.

Found by Coverity Scan; fix for CID 507; bugfix on 0.2.3.13-alpha.

13 years agoRemove a couple redundant NULL-checks before crypto_cipher_free
Nick Mathewson [Fri, 30 Mar 2012 14:16:58 +0000 (10:16 -0400)] 
Remove a couple redundant NULL-checks before crypto_cipher_free

Calling crypto_cipher_free(NULL) is always safe, since (by
convention) all of our xyz_free() functions treat xyz_free(NULL) as
a no-op.

Flagged by coverity scan; fixes CID 508 and 509.

13 years agoMerge branch 'bug5527'
Nick Mathewson [Fri, 30 Mar 2012 14:15:35 +0000 (10:15 -0400)] 
Merge branch 'bug5527'

13 years agoMove router lookup to _after_ we assert that its argument is set
Nick Mathewson [Fri, 30 Mar 2012 14:14:31 +0000 (10:14 -0400)] 
Move router lookup to _after_ we assert that its argument is set

A previous commit in the 5527 branch had moved
router_get_mutable_by_digest(digest_rcvd) to happen before we did
tor_assert(digest_rcvd), which would have defeated the purpose of
the assert.

13 years agoMerge remote-tracking branch 'linus/empty_desc_stats'
Nick Mathewson [Fri, 30 Mar 2012 14:06:21 +0000 (10:06 -0400)] 
Merge remote-tracking branch 'linus/empty_desc_stats'

13 years agoAdd changes file.
Linus Nordberg [Tue, 27 Mar 2012 13:00:34 +0000 (15:00 +0200)] 
Add changes file.

13 years agochecking "same addr/port but with nonmatching keys" is obsolete
Roger Dingledine [Thu, 29 Mar 2012 20:45:25 +0000 (16:45 -0400)] 
checking "same addr/port but with nonmatching keys" is obsolete

Specifically, I believe it dates back to when extend cells had address:port
but no digest in them. The special edge case is certainly not worth the
complexity these days.

13 years agosimplify further
Roger Dingledine [Thu, 29 Mar 2012 20:37:50 +0000 (16:37 -0400)] 
simplify further

13 years agoRefactor dirserv_orconn_tls_done().
Linus Nordberg [Tue, 27 Mar 2012 13:00:34 +0000 (15:00 +0200)] 
Refactor dirserv_orconn_tls_done().

Look up the router using the digest instead of looping over all routers.

13 years agoMerge remote-tracking branch 'linus/bug4875_2'
Nick Mathewson [Thu, 29 Mar 2012 14:53:09 +0000 (10:53 -0400)] 
Merge remote-tracking branch 'linus/bug4875_2'

13 years agonote that bug 5151 is on 0.2.3.9-alpha
Nick Mathewson [Wed, 28 Mar 2012 21:19:24 +0000 (17:19 -0400)] 
note that bug 5151 is on 0.2.3.9-alpha

13 years agoMerge remote-tracking branch 'linus/bug5151'
Nick Mathewson [Wed, 28 Mar 2012 21:18:30 +0000 (17:18 -0400)] 
Merge remote-tracking branch 'linus/bug5151'

13 years agoAdd changes file.
Linus Nordberg [Tue, 27 Mar 2012 13:00:34 +0000 (15:00 +0200)] 
Add changes file.

13 years agoMake relays handle an address suggestion from a directory server giving an IPv6 address.
Linus Nordberg [Tue, 27 Mar 2012 13:00:34 +0000 (15:00 +0200)] 
Make relays handle an address suggestion from a directory server giving an IPv6 address.

last_guessed_ip becomes a tor_addr_t.

Most parts of router_new_address_suggestion() learns
about IPv6 (resolve_my_address() is still IPv4 only).

13 years agoDon't try to generate stats from an empty served_descs.
Linus Nordberg [Tue, 27 Mar 2012 13:00:34 +0000 (15:00 +0200)] 
Don't try to generate stats from an empty served_descs.

13 years agoSay that bug4438 was a fix on 0.2.1.9-alpha.
Nick Mathewson [Wed, 28 Mar 2012 14:41:12 +0000 (10:41 -0400)] 
Say that bug4438 was a fix on 0.2.1.9-alpha.

Specifically, it was a fix on 33e2053ebca5d, where we introduced the
WRA_* and ROUTER_* codes for dirserv_add_descriptor.  Previously, we
had checked for a _negative_ return from dirserv_add_descriptor, which
meant "rejected".  An insufficiently new descriptor would give a
0-valued return.  But when we switched from numbers to enums, we got
this check wrong and had init_keys() give an error whenever the
descriptor wasn't accepted.

13 years agoFix a bunch of check-spaces complaints
Sebastian Hahn [Wed, 28 Mar 2012 13:02:15 +0000 (15:02 +0200)] 
Fix a bunch of check-spaces complaints