diff options
author | Nick Mathewson <nickm@torproject.org> | 2015-01-13 12:24:42 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2015-01-13 12:24:42 -0500 |
commit | f2fb85f9707a37b15d790386e0283f53d640b16b (patch) | |
tree | ebf13ebbbe2444204c9f7cd53e4ba577756762fb /src | |
parent | c9dd2d1a6ad2684442abb7a31e29b0998aaf605c (diff) | |
download | tor-f2fb85f9707a37b15d790386e0283f53d640b16b.tar.gz tor-f2fb85f9707a37b15d790386e0283f53d640b16b.zip |
Remove needless strdup in addressmap_register_virtual_address()
Fixes bug 14195. Bugfix on 0.1.0.1-rc.
Diffstat (limited to 'src')
-rw-r--r-- | src/or/addressmap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/addressmap.c b/src/or/addressmap.c index 4253532cec..d4b7acf274 100644 --- a/src/or/addressmap.c +++ b/src/or/addressmap.c @@ -951,7 +951,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 " |