summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2014-04-15 14:52:12 -0400
committerNick Mathewson <nickm@torproject.org>2014-04-15 14:52:12 -0400
commit9556668f5fe33faec2a2de049d10061150ac6608 (patch)
tree8b3b75cc21971df5ad4009d4b4d357ebd3836758
parentbc4c966851c16cfe3c92375fba22baf45a111a67 (diff)
parentf3c20a28ab50386064043cc31edb3b1b543d6fc6 (diff)
downloadtor-9556668f5fe33faec2a2de049d10061150ac6608.tar.gz
tor-9556668f5fe33faec2a2de049d10061150ac6608.zip
Merge remote-tracking branch 'origin/maint-0.2.4'
-rw-r--r--changes/bug115193
-rw-r--r--src/or/circuituse.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/changes/bug11519 b/changes/bug11519
new file mode 100644
index 0000000000..5c1e6af7e4
--- /dev/null
+++ b/changes/bug11519
@@ -0,0 +1,3 @@
+ o Minor bugfixes:
+ - Avoid sending an garbage value to the controller when a circuit is
+ cannibalized. Fixes bug 11519; bugfix on 0.2.3.11-alpha.
diff --git a/src/or/circuituse.c b/src/or/circuituse.c
index 8b82de0f99..75a10ba0c4 100644
--- a/src/or/circuituse.c
+++ b/src/or/circuituse.c
@@ -1515,7 +1515,7 @@ circuit_launch_by_extend_info(uint8_t purpose,
circ = circuit_find_to_cannibalize(purpose, extend_info, flags);
if (circ) {
uint8_t old_purpose = circ->base_.purpose;
- struct timeval old_timestamp_began;
+ struct timeval old_timestamp_began = circ->base_.timestamp_began;
log_info(LD_CIRC,"Cannibalizing circ '%s' for purpose %d (%s)",
build_state_get_exit_nickname(circ->build_state), purpose,