summaryrefslogtreecommitdiff
path: root/src/or/connection_edge.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2006-08-25 21:16:22 +0000
committerNick Mathewson <nickm@torproject.org>2006-08-25 21:16:22 +0000
commitfd36eb07889403524d3361d15b5d008c22695952 (patch)
tree0736cbdbf611faff3bcc65ed19113f70c52b4e49 /src/or/connection_edge.c
parent7739c5c49a3eb191b7c042ead52d7e9d28515672 (diff)
downloadtor-fd36eb07889403524d3361d15b5d008c22695952.tar.gz
tor-fd36eb07889403524d3361d15b5d008c22695952.zip
r8576@Kushana: nickm | 2006-08-25 17:16:01 -0400
Fix bug 314: Instead of checking address_in_virtualrange, check addressmap_have_mapping(). This should be more accurate. [Rename to addressmap_have_mapping() from addressmap_already_mapped().] svn:r8226
Diffstat (limited to 'src/or/connection_edge.c')
-rw-r--r--src/or/connection_edge.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/connection_edge.c b/src/or/connection_edge.c
index 0131b066b9..4e5ee2fdd1 100644
--- a/src/or/connection_edge.c
+++ b/src/or/connection_edge.c
@@ -645,9 +645,9 @@ addressmap_rewrite(char *address, size_t maxlen)
/** Return 1 if <b>address</b> is already registered, else return 0 */
int
-addressmap_already_mapped(const char *address)
+addressmap_have_mapping(const char *address)
{
- return strmap_get(addressmap, address) ? 1 : 0;
+ return strmap_get_lc(addressmap, address) ? 1 : 0;
}
/** Register a request to map <b>address</b> to <b>new_address</b>,