Make circuit_purpose_to_string handle CIRCUIT_PURPOSE_PATH_BIAS_TESTING

This commit is contained in:
Nick Mathewson 2013-03-14 12:06:03 -04:00
parent 051b1e8ac4
commit 653b09e1ec
2 changed files with 6 additions and 0 deletions

3
changes/bug8477-easypart Normal file
View File

@ -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.

View File

@ -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;