summaryrefslogtreecommitdiff
path: root/src/or/addressmap.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2015-01-14 13:30:10 -0500
committerNick Mathewson <nickm@torproject.org>2015-01-14 13:30:10 -0500
commit1686f81ac25328382a46ffe569db1d371f6b6be2 (patch)
tree95bf3c3ea57ad8beaae7079d222711442bdda4e9 /src/or/addressmap.c
parent518b0b3c5fefba2458181c7f733bc684e5466cf9 (diff)
parentf2fb85f9707a37b15d790386e0283f53d640b16b (diff)
downloadtor-1686f81ac25328382a46ffe569db1d371f6b6be2.tar.gz
tor-1686f81ac25328382a46ffe569db1d371f6b6be2.zip
Merge remote-tracking branch 'origin/maint-0.2.5'
Diffstat (limited to 'src/or/addressmap.c')
-rw-r--r--src/or/addressmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/addressmap.c b/src/or/addressmap.c
index 9d92eb7903..64654218ef 100644
--- a/src/or/addressmap.c
+++ b/src/or/addressmap.c
@@ -957,7 +957,7 @@ addressmap_register_virtual_address(int type, char *new_address)
!strcasecmp(new_address, ent->new_address)) {
tor_free(new_address);
tor_assert(!vent_needs_to_be_added);
- return tor_strdup(*addrp);
+ return *addrp;
} else {
log_warn(LD_BUG,
"Internal confusion: I thought that '%s' was mapped to by "