[tor-commits] [tor/release-0.2.2] Remove extra quotation marks around the result of esc_for_log

nickm at torproject.org nickm at torproject.org
Wed Aug 17 19:51:28 UTC 2011


commit 03f6ee8c5f270497b4990b98bc3d23ffea6c75a9
Author: Robert Ransom <rransom.8774 at gmail.com>
Date:   Mon Aug 15 04:53:11 2011 -0700

    Remove extra quotation marks around the result of esc_for_log
---
 changes/bug3732  |    7 +++++++
 src/or/control.c |    2 +-
 2 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/changes/bug3732 b/changes/bug3732
new file mode 100644
index 0000000..7a71d1a
--- /dev/null
+++ b/changes/bug3732
@@ -0,0 +1,7 @@
+  o Major bugfixes:
+
+    - Remove an extra pair of quotation marks around the error
+      message in control-port STATUS_GENERAL BUG events.  Bugfix on
+      0.1.2.6-alpha; fixes bug 3732.
+
+
diff --git a/src/or/control.c b/src/or/control.c
index 954da65..de9dca0 100644
--- a/src/or/control.c
+++ b/src/or/control.c
@@ -3480,7 +3480,7 @@ control_event_logmsg(int severity, uint32_t domain, const char *msg)
       severity <= LOG_NOTICE) {
     char *esc = esc_for_log(msg);
     ++disable_log_messages;
-    control_event_general_status(severity, "BUG REASON=\"%s\"", esc);
+    control_event_general_status(severity, "BUG REASON=%s", esc);
     --disable_log_messages;
     tor_free(esc);
   }





More information about the tor-commits mailing list