From b2106956e0adc0382f033e1a6cd0896a24122d05 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Mon, 14 Apr 2014 21:51:30 -0400 Subject: Don't send uninitialized stack to the controller and say it's a date. Fixes bug 11519, apparently bugfix on 0.2.3.11-alpha. --- changes/bug11519 | 3 +++ src/or/circuituse.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 changes/bug11519 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 ade4224fe5..7218ecc077 100644 --- a/src/or/circuituse.c +++ b/src/or/circuituse.c @@ -1310,7 +1310,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_created; + struct timeval old_timestamp_created = circ->_base.timestamp_created; log_info(LD_CIRC,"Cannibalizing circ '%s' for purpose %d (%s)", build_state_get_exit_nickname(circ->build_state), purpose, -- cgit v1.2.3-54-g00ecf