]> git.ipfire.org Git - thirdparty/tor.git/commit
Fix a regression bug in AllowDotExit
authorNick Mathewson <nickm@torproject.org>
Tue, 19 Jun 2012 23:45:28 +0000 (19:45 -0400)
committerNick Mathewson <nickm@torproject.org>
Tue, 19 Jun 2012 23:50:03 +0000 (19:50 -0400)
commitc239c57d3c9a8ddff7db6ed20e836844b17efdae
treeaf4aad375fa1c817e969b6113906035a8390e2c9
parente6782b355ae77455aaff3af9fe3831c07312a5c8
Fix a regression bug in AllowDotExit

The code that detected the source of a remapped address checked that
an address mapping's source was a given rewrite rule if addr_orig had
no .exit, and addr did have a .exit after processing that rule.  But
addr_orig was formatted for logging: it was not the original address
at all, but rather was the address escaped for logging and possibly
replaced with "[scrubbed]".

This new logic will correctly set ADDRMAPSRC_NONE in the case when the
address starts life as a .exit address, so that AllowDotExit can work
again.

Fixes bug 6211; bugfix on 0.2.3.17-beta
changes/bug6211 [new file with mode: 0644]
src/or/connection_edge.c