summaryrefslogtreecommitdiff
path: root/src/or/circuituse.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2008-02-21 08:08:13 +0000
committerRoger Dingledine <arma@torproject.org>2008-02-21 08:08:13 +0000
commit18a209ffe6580115124ba08e125ff77c9478dcfb (patch)
tree9cb0a82f6ff8913b814ccf9564ea5101c3f1107d /src/or/circuituse.c
parent828c707812553f210979bff32ee31381dec90a2d (diff)
downloadtor-18a209ffe6580115124ba08e125ff77c9478dcfb.tar.gz
tor-18a209ffe6580115124ba08e125ff77c9478dcfb.zip
Even though the man page said that "TrackHostExits ." should
work, nobody had ever implemented it. Bugfix on 0.1.0.x. svn:r13647
Diffstat (limited to 'src/or/circuituse.c')
-rw-r--r--src/or/circuituse.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/circuituse.c b/src/or/circuituse.c
index 668d5db5cd..b1b65754b4 100644
--- a/src/or/circuituse.c
+++ b/src/or/circuituse.c
@@ -1185,7 +1185,8 @@ consider_recording_trackhost(edge_connection_t *conn, origin_circuit_t *circ)
SMARTLIST_FOREACH(options->TrackHostExits, const char *, cp, {
if (cp[0] == '.') { /* match end */
- if (!strcasecmpend(conn->socks_request->address, cp) ||
+ if (cp[1] == '\0' ||
+ !strcasecmpend(conn->socks_request->address, cp) ||
!strcasecmp(conn->socks_request->address, &cp[1]))
found_needle = 1;
} else if (strcasecmp(cp, conn->socks_request->address) == 0) {