summaryrefslogtreecommitdiff
path: root/src/or/addressmap.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2015-01-06 14:15:08 -0500
committerNick Mathewson <nickm@torproject.org>2015-01-06 14:15:08 -0500
commita034863b45455a2def6d957d54bec2530db4a1a6 (patch)
treefd3ac9af55713244202a1bcb06c5f5a73bc16e40 /src/or/addressmap.c
parentfcc78e5f8a3249eadfea31db1aca6884b31c1873 (diff)
parent8ef6cdc39f047a7579858a6e23629c1c2718fc0a (diff)
downloadtor-a034863b45455a2def6d957d54bec2530db4a1a6.tar.gz
tor-a034863b45455a2def6d957d54bec2530db4a1a6.zip
Merge remote-tracking branch 'public/bug12509_025'
Diffstat (limited to 'src/or/addressmap.c')
-rw-r--r--src/or/addressmap.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/addressmap.c b/src/or/addressmap.c
index 8753492b4b..8ad24323b5 100644
--- a/src/or/addressmap.c
+++ b/src/or/addressmap.c
@@ -230,6 +230,8 @@ addressmap_address_should_automap(const char *address,
return 0;
SMARTLIST_FOREACH_BEGIN(suffix_list, const char *, suffix) {
+ if (!strcmp(suffix, "."))
+ return 1;
if (!strcasecmpend(address, suffix))
return 1;
} SMARTLIST_FOREACH_END(suffix);