]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Make sure that the error in ADDRMAP events is well-formed
authorNick Mathewson <nickm@torproject.org>
Fri, 23 Nov 2012 16:36:44 +0000 (11:36 -0500)
committerNick Mathewson <nickm@torproject.org>
Fri, 23 Nov 2012 16:36:44 +0000 (11:36 -0500)
"error=Unable to launch resolve request" is not a nice thing to tell
the controller.  Bugfix on 0.2.0.19-alpha (c11c48fc).

changes/addrmap_error [new file with mode: 0644]
src/or/control.c

diff --git a/changes/addrmap_error b/changes/addrmap_error
new file mode 100644 (file)
index 0000000..17d9b54
--- /dev/null
@@ -0,0 +1,5 @@
+  o Minor bugfixes (controller):
+    - The ADDRMAP command can no longer generate an ill-formed error
+      code on a failed MAPADDRESS. It now says "internal" rather than
+      an English sentence fragment with spaces in the middle. Bugfix on
+      Tor 0.2.0.19-alpha.
index c6a66ae5f54fb0a2e64757084b84c83cdbbf99a6..0b7f04adacdd9b50d9d15ee19a90c772ba6146f6 100644 (file)
@@ -2943,7 +2943,7 @@ handle_control_resolve(control_connection_t *conn, uint32_t len,
   send_control_done(conn);
   SMARTLIST_FOREACH(failed, const char *, arg, {
       control_event_address_mapped(arg, arg, time(NULL),
-                                   "Unable to launch resolve request");
+                                   "internal");
   });
 
   SMARTLIST_FOREACH(args, char *, cp, tor_free(cp));