summaryrefslogtreecommitdiff
path: root/src/or/connection_edge.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2015-01-12 21:08:43 -0500
committerNick Mathewson <nickm@torproject.org>2015-01-12 21:08:43 -0500
commitbba995e6660dbb49876886278f71d7d5a85f5f88 (patch)
tree3034169bbd70b8f46d410db2adafa379bcb08627 /src/or/connection_edge.c
parent715fdfcb7b44ae6fdad886e688708ec0d483a1f8 (diff)
downloadtor-bba995e6660dbb49876886278f71d7d5a85f5f88.tar.gz
tor-bba995e6660dbb49876886278f71d7d5a85f5f88.zip
Begin writing unit tests for rewrite code
Diffstat (limited to 'src/or/connection_edge.c')
-rw-r--r--src/or/connection_edge.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/connection_edge.c b/src/or/connection_edge.c
index 56e496f670..ca99a86ae0 100644
--- a/src/or/connection_edge.c
+++ b/src/or/connection_edge.c
@@ -924,6 +924,7 @@ connection_ap_handshake_rewrite(entry_connection_t *conn,
out->map_expires = TIME_MAX;
out->end_reason = 0;
out->should_close = 0;
+ out->orig_address[0] = 0;
tor_strlower(socks->address); /* normalize it */
strlcpy(out->orig_address, socks->address, sizeof(out->orig_address));