]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Don't send uninitialized stack to the controller and say it's a date.
authorNick Mathewson <nickm@torproject.org>
Tue, 15 Apr 2014 01:51:30 +0000 (21:51 -0400)
committerNick Mathewson <nickm@torproject.org>
Tue, 15 Apr 2014 01:51:30 +0000 (21:51 -0400)
Fixes bug 11519, apparently bugfix on 0.2.3.11-alpha.

changes/bug11519 [new file with mode: 0644]
src/or/circuituse.c

diff --git a/changes/bug11519 b/changes/bug11519
new file mode 100644 (file)
index 0000000..5c1e6af
--- /dev/null
@@ -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.
index ade4224fe5a710bc4cad53d5ab9a572c900bc841..7218ecc0774abcc41888aae9b63c132e67afc9c3 100644 (file)
@@ -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,