summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2012-03-27 18:28:39 -0400
committerNick Mathewson <nickm@torproject.org>2012-03-27 18:28:39 -0400
commit80b2756b537204ba070f1e3df4e5ed3f4e6815c0 (patch)
treeded9db5c86010b5a33004d4be2c1d75987a21331
parent342e753d31a91752da19fbcef92e07373b30fac6 (diff)
downloadtor-80b2756b537204ba070f1e3df4e5ed3f4e6815c0.tar.gz
tor-80b2756b537204ba070f1e3df4e5ed3f4e6815c0.zip
Log statement to help track down bug4091
-rw-r--r--changes/bug4091_debugging5
-rw-r--r--src/common/address.c4
2 files changed, 8 insertions, 1 deletions
diff --git a/changes/bug4091_debugging b/changes/bug4091_debugging
new file mode 100644
index 0000000000..f785380318
--- /dev/null
+++ b/changes/bug4091_debugging
@@ -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.
diff --git a/src/common/address.c b/src/common/address.c
index 17cda42cb7..676c485897 100644
--- a/src/common/address.c
+++ b/src/common/address.c
@@ -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;
}