[tor-commits] [tor/master] Make circuit_purpose_to_string handle CIRCUIT_PURPOSE_PATH_BIAS_TESTING

nickm at torproject.org nickm at torproject.org
Thu Mar 14 16:14:46 UTC 2013


commit 653b09e1ec27bc2c8676c3c1ec40264972540637
Author: Nick Mathewson <nickm at torproject.org>
Date:   Thu Mar 14 12:06:03 2013 -0400

    Make circuit_purpose_to_string handle CIRCUIT_PURPOSE_PATH_BIAS_TESTING
---
 changes/bug8477-easypart |    3 +++
 src/or/circuitlist.c     |    3 +++
 2 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/changes/bug8477-easypart b/changes/bug8477-easypart
new file mode 100644
index 0000000..0f8f103
--- /dev/null
+++ b/changes/bug8477-easypart
@@ -0,0 +1,3 @@
+  o Minor bugfixes:
+    - Log the purpose of a path-bias testing circuit correctly.
+      Improves a log message from bug 8477; bugfix on 0.2.4.8-alpha.  
diff --git a/src/or/circuitlist.c b/src/or/circuitlist.c
index 17e18c7..d4c07fc 100644
--- a/src/or/circuitlist.c
+++ b/src/or/circuitlist.c
@@ -531,6 +531,9 @@ circuit_purpose_to_string(uint8_t purpose)
     case CIRCUIT_PURPOSE_CONTROLLER:
       return "Circuit made by controller";
 
+    case CIRCUIT_PURPOSE_PATH_BIAS_TESTING:
+      return "Path-bias testing circuit";
+
     default:
       tor_snprintf(buf, sizeof(buf), "UNKNOWN_%d", (int)purpose);
       return buf;





More information about the tor-commits mailing list