]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Log statement to help track down bug4091
authorNick Mathewson <nickm@torproject.org>
Tue, 27 Mar 2012 22:28:39 +0000 (18:28 -0400)
committerNick Mathewson <nickm@torproject.org>
Tue, 27 Mar 2012 22:28:39 +0000 (18:28 -0400)
changes/bug4091_debugging [new file with mode: 0644]
src/common/address.c

diff --git a/changes/bug4091_debugging b/changes/bug4091_debugging
new file mode 100644 (file)
index 0000000..f785380
--- /dev/null
@@ -0,0 +1,5 @@
+  o Minor features:
+    - Add more information to a log statement that might help track down
+      bug 4091. If you're seeing "Bug: tor_addr_is_internal() called with a
+      non-IP address" messages (or any Bug messages, for that matter!),
+      please let us know about it.
index 17cda42cb7a59e85b41495cf11e298743fdf33c3..676c48589735498c68f95d63605ef069280ccbba 100644 (file)
@@ -355,7 +355,9 @@ tor_addr_is_internal(const tor_addr_t *addr, int for_listening)
 
   /* unknown address family... assume it's not safe for external use */
   /* rather than tor_assert(0) */
-  log_warn(LD_BUG, "tor_addr_is_internal() called with a non-IP address.");
+  log_warn(LD_BUG, "tor_addr_is_internal() called with a non-IP address of "
+           "type %d", (int)v_family);
+  tor_fragile_assert();
   return 1;
 }